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