Changed $limit_query to $limit