otuatail echo $stmt['First_N') . "<br/>";
This line ^ contains a php syntax error, e.g. the incorrect closing ). The code never runs at all, regardless of using the correct variable name $row.
This is another reason to use a localhost development system, when learning, developing, and debugging code/query(ies). You will be able to set the php error related settings in the php.ini, so that ALL errors will be reported and displayed. Putting these settings into your code won't help you with php syntax errors, since your code never runs in this case to set the settings.
The rest of the code is a random collection of statements, having nothing to do with reading and understanding the php documentation for what you are trying to do. You are using the non-prepared query() method, which is what you should be using, since this sql query statement doesn't have any values being supplied to it. Instead of going on to fetch the data at that point, you are incorrectly trying to use the PDOStatement object in $q, as the input parameter to a prepare() method call (another reason to name variables as to what type of data is in them.). After you fix the php syntax, this would be producing some type of php runtime error about $q not being a string.