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). $sql = "SELECT * FROM dec where id = ?"; $q = $pdo->prepare($sql); $q->execute(array($id)); $data = $q->fetch(PDO::FETCH_ASSOC); 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 dechex

Explanation: I beat my head for hours trying to find the source of this error. Moral of story: do not use

author: @tradesouthwest
website: http://php.net/manual/en/function.decbin.php
Date: 12-03-2016 21:14
Id: 29