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