The following line throws an exception -
$sth = $db->prepare("SELECT * FROM providers WHERE name LIKE %:name%");
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 near "%": syntax error'
Taking the % signs out gets rid of the error, but obviously the search doesn't work as I want it. I've tried toying with quotes, putting in an actual value instead of the :-prefixed PDO variable, the only thing that gets rid of the error is removing the % signs. I'm at a loss.