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