added LIMIT for subquery in Indi/Auth.php