MySQL error 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 lb.box_pub = 1' at line 1
When executing:
SELECT lb.box_name FROM lio_cat_box_sub AS lcb LEFT JOIN lio_boxes AS lb ON lcb.cb_box = lb.box_id WHERE lcb.cb_cat = AND lb.box_pub = 1