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 p.products_status = 1 and (p.products_model like 'T%' or p.products_mo...' at line 1
select distinct p.products_id from products p, products_to_stones p2s where p2s.products_id = p.products_id and p2s.stone_name_id in () and p.products_status = 1 and (p.products_model like 'T%' or p.products_model like 'DT%')
[TEP STOP]