Thread:Project:Support desk/select() in foreach()/reply

Does it die when running "$mySQLtimestamp = $db->fetchObject($res)" or does it die on a missing debug line where you try to print $mySQLtimestamp as a string?

fetchObject returns an object of type stdclass, so you probably want something like this:

$mySQLtimestamp = $db->fetchObject($res)->rev_timestamp;