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