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