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