An error has occurred

Unfortunately a query has failed [SELECT r.* FROM cms10_galleries r LEFT JOIN cms10_catalogue_entry_linkage l ON l.content_id=CAST(r.id AS CHAR(65535)) AND content_type='gallery' LEFT JOIN cms10_catalogue_entries ce ON ce.id=l.catalogue_entry_id LEFT JOIN cms10_catalogue_efv_short f0 ON (f0.ce_id=ce.id AND f0.cf_id=47) JOIN cms10_seo_meta_keywords m ON (m.meta_for_type='gallery' AND m.meta_for_id=CAST(r.name AS CHAR(65535))) WHERE (MATCH (meta_keyword) AGAINST ('#Alamo127') OR meta_keyword='\"#Alamo127\"') AND name NOT LIKE 'download\_%' AND (ce.c_name='_gallery' OR ce.c_name IS NULL)/* 465bfee06fd97 */ LIMIT 10] [Unknown column 'r.id' in 'on clause'] (version: 10.0.20, PHP version: 5.4.45, URL: /index.php?page=search&type=results&content=%22%23Alamo127%22&days=-1&only_search_meta=1&all_defaults=1)

The staff have been provided a ‘stack trace’ which may help them diagnose the problem.