I have recently been studying the Zend Framework, but I have ran into a problem.
Apache crashes when I run :
$this->db->fetchAll("SELECT COUNT(DISTINCT userid) AS NumberOfUsers, COUNT(id) AS total FROM notebook")
But,this don't happen if I run
$this->db->fetchAll("SELECT COUNT(DISTINCT userid) AS NumberOfUsers FROM notebook")
or
$this->db->fetchAll("SELECT COUNT(id) AS total FROM notebook")
error log :
---------------------------
apache.exe - Application error
---------------------------
"0x019b250a" Instruction references of "0x00000000" memory。This memory can't for "read"。
To the termination procedure, please click "ok".
Should debug program, please click "cancel".
---------------------------
ok cancel
---------------------------
I don't know why this happens. Could the problem be the version of PHP I am running. (Currently I am running PHP 5.2.8). Can you help me?