Use the MySQL function SUBSTRING_INDEX :
SELECT SUBSTRING_INDEX(field, ',', 1)
However, storing lists in strings separated by delimiters is usually an inefficient use of a relational database management system such as MySQL: it is often better to normalize your data structure by storing such lists in a separate table of pairs (id, value) .
source share