Suppose I have a 2 column table like this:
| user_id | int(11) | NO | UNI | NULL | | | utm | point | NO | MUL | NULL
You can also do it this way. Not sure if it's faster or not.
select * from mytable where glength(geomfromtext(concat('linestring(', x(utm), ' ', y(utm), ',20 20', ')'))) < 99999999