Since you sent a partial request, this was not obvious from the very beginning, but your full request clarifies the situation;
SELECT * FROM default_ps_products WHERE manufacturer_id=2 ORDER BY 'default_ps_products'.'manufacturer_id' ASC LIMIT 0, 30
When you add an alias to the default_ps_products table in select, you cannot selectively use an alias only in WHERE , you also need to change ORDER BY to use the same alias. The full query should be in other words:
SELECT * FROM default_ps_products p WHERE p.manufacturer_id=2 ORDER BY p.'manufacturer_id' ASC LIMIT 0, 30
source share