If i have a select statement with select (column_1 + column_2) as sum_of_parts from table_1 How would I do a Table_1::find("sum_of_parts = '6'"); scenario when the column is not a column in the table it is mapped to?
Basically I am trying to do this...
SELECT
name,
( 3959 * acos( cos( radians(42.290763) ) * cos( radians( locations.lat ) )
* cos( radians(locations.lng) - radians(-71.35368)) + sin(radians(42.290763))
* sin( radians(locations.lat)))) AS distance
FROM locations
WHERE active = 1
HAVING distance < 10
ORDER BY distance;
Thanks!