Du skal undslippe ' ved at fordoble dem : select * from table where reason = '''missed transaction''';