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 '-30, 30' at line 14select *
from product
where p_show_siamshop='yes'
and p_stop = 0
and p_pause = ''
AND (p_tag LIKE '%ครีมกันแดดSPF50%'
OR p_topic LIKE '%ครีมกันแดดSPF50%'
OR p_detail LIKE '%ครีมกันแดดSPF50%'
OR p_brand LIKE '%ครีมกันแดดSPF50%'
OR p_model LIKE '%ครีมกันแดดSPF50%'
)
ORDER BY p_shoplevel DESC , p_update DESC
LIMIT -30, 30