Add status_id to query.php fixes #423