SyntaxFix
Write A Post
Hire A Developer
Questions
DISTINCT is the keyword For me your query is correct
DISTINCT
Just try to do this first
SELECT DISTINCT title,id FROM tbl_countries
Later on you can try with order by.