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