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