lat not found
lng not found
SELECT product_id,  
    ( 6371 * acos( cos( radians(lat not found) ) 
    * cos( radians( latitude ) ) 
    * cos( radians( longitude ) - radians(lng not found) ) 
    + sin( radians(lat not found) ) 
    * sin( radians( latitude) ) ) )
 AS distance FROM nbl_product_location HAVING distance < 20 ORDER BY distanceArray
(
)