Anyone have any idea why this would happen
$stmt = $this->prepare($this->sql);
$exec = $stmt->execute($this->bindings);
// The below returns an empty array()
return $exec->fetchAll(PDO::FETCH_OBJ);
// This however will return rows if looped.
return $exec->fetch(PDO::FETCH_OBJ);
Even weirder is that this is only happening with certain ID ranges within our database, for example if you search for various information about an item with product id 552, the above code works with fetchAll() no problem, but change that to 553 and it fails (empty array). 554 then works again. There is virtually no difference in the data within the DB between the items (it is all just integers and timestamps [geolocation data]).