You can't do this from within qa_db_posts_basic_selectspec(...) but rather one of the more specific functions in qa-db-selects.php that builds on the output of qa_db_posts_basic_selectspec(...)
For example for questions lists, in function qa_db_qs_selectspec(...) you could add the condition immediately after the following SQL:
JOIN (SELECT postid FROM ^posts WHERE