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