Typo: Do not use dec for a table or string name
This one is PHP: Was trying to call from a MySQL database a table named "dec" (December).
Turns out a 1064 error thinking that dec is a reserved word. I could not find it anywhere in the PHP.net but it may be shorthand for
$sql = "SELECT * FROM dec where id = ?"; $q = $pdo->prepare($sql); $q->execute(array($id)); $data = $q->fetch(PDO::FETCH_ASSOC);