I'm trying to execute this SQL query on my database with VB.NET:
Dim sql As New MySqlCommand("SELECT * FROM `personer` WHERE epost LIKE %" _
& txbEpost.Text, tilkobling)
The problem is that it keeps getting an error, and I have no idea why. It keeps saying that there's a syntax error near 'gmail.com' (given I've written gmail.com in txbEpost.Text). But running the exact same query in my web interface MySQL yields the expected results.
What am I doing wrong?