Query Error SELECT b.id, b.record_id,b.color_id,b.start_re,b.end_re,b.price, a.size_id FROM (( fs_products_color as a INNER JOIN fs_products_price as b ON a.id = b.color_id) INNER JOIN fs_products_size as c ON a.size_id = c.id) WHERE a.product_id = 2181 AND a.size_id = 900 AND b.color_id = ORDER BY b.price DESC
Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY b.price DESC' at line 4 )