$jest = $db->prepare('SELECT imie_autora, nazwisko_autora FROM s_autor WHERE imie_autora = ":imie", nazwisko_autora = ":nazwisko"'); $jest->bindValue(':imie', $imie, PDO::PARAM_STR); $jest->bindValue(':nazwisko', $nazwisko, PDO::PARAM_STR); $jest->execute;
A taki mam błąd



Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ' nazwisko_autora = ":nazwisko"' at line 1 in C:\xampp\htdocs\bib\autor.php:108 Stack trace: #0 C:\xampp\htdocs\bib\autor.php(108): PDO->prepare('SELECT imie_aut...') #1 {main} thrown in C:\xampp\htdocs\bib\autor.php on line 108 (linia 108 tutaj jest pierwsza)