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 basketSession='e5fa242d3e4f8d300e8eb6578c7f44c9'' at line 1