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