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