select * from words where 'StackExch_bla_bla_bla' LIKE CONCAT(words.word_column,'%') order by length( trim( words.word_column )) DESC limit 1