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)>'8999.00' and cars.id <>'114_qld' and ((cars.make='Renault' and cars.model!='Megane' and cars.BodyStyleDescription='Wagon') OR (cars.make!='Renault' and cars.BodyStyleDescription='Wagon') ) order by price asc limit 10
ERROR: MySQL server has gone away