Error in executing SQL string: SELECT COUNT(*) FROM gl_galleries as b WHERE ((b.gl_location_id = ) or (b.gl_location_id = 0)) and (b.gl_inuse = 1)
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 ') or (b.gl_location_id = 0)) and (b.gl_inuse = 1)' at line 1