My records

general_errors.There was an SQL error: ERROR: column "user_id" does not exist LINE 17: AND o.created_by_id=#user_id# ^ - SELECT count(o.*) FROM cache_occurrences_functional o JOIN cache_occurrences_nonfunctional onf on JOIN cache_samples_nonfunctional snf on JOIN cache_taxa_taxon_lists cttl on JOIN websites w on and w.deleted=false LEFT JOIN index_websites_website_agreements canEdit on canEdit.from_website_id=o.website_id and canEdit.to_website_id in (60) and canEdit.provide_for_editing=true JOIN users privacyusers ON WHERE AND (o.website_id in (60) OR OR privacyusers.allow_share_for_reporting=true OR privacyusers.allow_share_for_reporting IS NULL) AND o.website_id in (60) AND o.release_status='R' AND o.confidential='f' AND o.created_by_id=#user_id#