Query failed : SELECT id FROM `accommodation` WHERE (`approved` = 1 AND `town` LIKE '%Poole' OR `village` LIKE '%Poole') AND `cottages_live_entertainment`=1 Unknown column 'cottages_live_entertainment' in 'where clause'