No - it doesn't
This is my attempt:
$query_rsdef2 = sprintf("SELECT search_memid, ad_application FROM `bungle_MFPOI` WHERE search_memid = %s", GetSQLValueString($colname_rsdef2, "text"));
$query_limit_rsdef2 = sprintf("%s LIMIT %d, %d", $query_rsdef2, $startRow_rsdef2, $maxRows_rsdef2)...