Even thought "SELECT COUNT(*) FROM (SELECT 1) AS TB" is a select query, the function PMA_SQP_analyze($arr) wasn't making the $is_select attribute is true for this query. To fix that, this line was added.