Error : Commands out of sync; you can't run this command now
SQL : SELECT * FROM cm_products INNER JOIN cm_shops ON cm_products.shop_id = cm_shops.shop_id where product_id='7163' and cm_shops.shop_status = 'Open'