I have a very simply function that is failing (it simply dies and doesn't complete at all--no error is printed), and I don't understand why. Here is my function:
global $db;
$query = "Yadda Yadda Yadda….";
$results = $db->query($query)->fetchAll();
return $results;
The actual query string is correct, because I can print it out, manually execute it, and get the expected results back.
Based on 'echo'ing things back, it seems like the function dies at the actual execution stage. I have tried it without the "->fetchAll()" too, to no avail.
I feel like it's obvious, but I just don't see it...Thanks in advance.