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