최근 본 상품이

select * ,if(p_soldout_chk='N',p_stock,0) as p_stock from smart_product as p where (1) and p_view = 'Y' and p_option_valid_chk = 'Y' and p_outer = 0 and (select count(*) from smart_product_category as pct where pct.pct_pcode=p_code and find_in_set(pct_cuid,'531')) > 0 order by p_idx asc limit -400, 80
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-400, 80' at line 9