QUERY: SELECT cars . * , ci.image_name FROM carfeedb_cardata.bestbuy_cardata cars LEFT JOIN carfeedb_cardata.bestbuy_car_images AS ci ON ci.stock_number = cars.id AND ci.sort_order =1 where cars.yard_code not in ('md21273','6545l','6545245','654542')and cars.price <> 0 and IF(cars.special_price!='',cars.special_price,cars.price)>'10999.00' and cars.id <>'20363_6264' and ((cars.make='Ford' and cars.model!='Falcon' and cars.BodyStyleDescription='Sedan') OR (cars.make!='Ford' and cars.BodyStyleDescription='Sedan') ) order by price asc limit 10
ERROR: MySQL server has gone away