Czesc mam problem z bindValue przy kilku wartosciach. Dla jednej jest wszystko okej, albo jak recznie wpisze liczby ktore chce dynamicznie zastapic wiec zapytanie sqlowe jest dobre.
A oto kod
$sql = "SELECT n from users n where n REGEXP :regexp LIMIT :limit OFFSET :offset";
$stmt = $conn->prepare($sql);
$stmt->bindValue(':regexp',$tags);
$stmt->bindValue(':offset',$offset);
$stmt->bindValue(':limit',$limit);
$stmt->execute();
A komunikat dostaje taki
Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
5' OFFSET '1
at line 17