added limit 1 to sql query