Tak po prostu, z kodem HIDNS20 wszystkie produkty -20%
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 'order by pa.sort_order, pov.products_options_values_sortorder, pov.products_opti' at line 1

select distinct pov.products_options_values_id, pov.products_options_values_name, pov.products_options_values_hex from products_options_values pov, products_options_values_to_products_options pov2po, products_attributes pa where pov.products_options_values_id = pov2po.products_options_values_id and pov2po.products_options_id = 1 and pov.language_id = 2 and pa.options_id = pov2po.products_options_id and pa.options_values_id = pov2po.products_options_values_id and pa.products_id = order by pa.sort_order, pov.products_options_values_sortorder, pov.products_options_values_name