Duplicated sql syntax