Way too much computation on the query.
Post the schema (describe geodb_coordinates).
My approach to this type of query (it was geolocation) was to compute out a square with the four corners that indicated the area within the query, then search for lat/long within those areas.
Something similar to
In this case, the complex computation is only done once, and used to define the range of acceptable coordinates.