1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'b' at line 1
select p.* from tmp_variants_sorting tvs, products p WHERE p.products_id = tvs.products_id and p.products_status = 1 order b