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