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