select distinct(it_5) from g5_shop_item a, g5_shop_category b where a.ca_id = b.ca_id and a.it_use = 1 and ( ( ) ) and (a.ca_id !='j0' or (a.ca_id='j0' and soldout_time > '2024-05-11 00:00:00') )
1064 : 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 ') ) and (a.ca_id !='j0' or (a.ca_id='j0' and soldout_time > '2024-05-11 00...' at line 1
error file : /cmart/shop/search.php