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