PHP Fatal error: Call to a member function query_first() on a non-object in /includes/functions_pt_impex.php
PHP Code:
Call to a member function query_first() on a non-object in /includes/functions_pt_impex.php
Fixed by declaring $db as global in function ptimporter_prepare_issue_posting_pemissions