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