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