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 'or template_list.is_admin=1) and template_list.template_group_no=5 ORDER BY temp' at line 1
query : SELECT template_list.*, template_group.tem_group, template_group.tem_category FROM template_list LEFT JOIN template_group ON template_list.template_group_no = template_group.no WHERE (template_list.user_no= or template_list.is_admin=1) and template_list.template_group_no=5 ORDER BY template_list.no desc LIMIT 0,8