SQL_ERROR_TITLESQL_ERROR_CODE 0
SQL_QUERY select
t1.*,
t2.*, t2.id as p_id,
t3.title, t3.label, t3.olive_type, t3.product_url,
t4.price, t4.currency,
(select count(*) from t_products where group_id=t2.id) as total_group
from
t_categories t1
left join t_products t2 on t2.id=t1.product_id
left join t_product_details t3 on t1.product_id=t3.product_id
left join t_price t4 on t1.product_id=t4.product_id and t4.currency='TL' and t4.type='retail' and t4.region='1'
where
t1.category_id='6'
and
t3.lang='tr'
and
t2.visible=1
order by t2.seq asc limit 0,
SQL_ERROR 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 '' at line 18