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