DB Error: syntax error
select category.id from category where category_id =DB Error: syntax error
select product.id from product, xref_product_x_category x where category_id = and product.id = x.product_id order by least(if ((productprice1 = ''),'50000',productprice1), if ((productprice2 = ''),'50000',productprice2), if ((productprice3 = ''),'50000',productprice3), if ((productprice4 = ''),'50000',productprice4), if ((productprice5 = ''),'50000',productprice5)) limit 500