Suppose I have a 2 column table like this:
| user_id | int(11) | NO | UNI | NULL | | | utm | point | NO | MUL | NULL
Solved. This is what I did:
where GLength(LineStringFromWKB(LineString(asbinary(utm), asbinary(@mypoint)))) < 9999999999999;