I have the following code, which works fine on live site, but not on localhost.
$status = $this->getRequest()->getQuery(\'status\');
I usually use this
$status = $this->getRequest()->getParam('status'); // or $status = $this->getRequest()->getParams();
I assume that you have a Questions Controller Ask Action. Here is the documentation about Zend's request