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