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='997cb1d58ca6897cb85f40e9c8f6ad47'' at line 1