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