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