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