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 's Footwear'\x0A\x09\x09and e_state != '' GROUP BY e_state\x0A\x09\x09ORDER BY...' at line 3