Database Error; SQL: SELECT
DISTINCT
`country`.`id` as `id`,
`country`.`name` as `name`,
min(
6371 *
acos (
cos(radians()) *
cos(radians(`t`.`latitude`)) *
cos(radians(`t`.`longitude`) - radians()) +
sin(radians()) *
sin(radians(`t`.`latitude`))
)
) AS `distance`
FROM `wp_pods_crm_park` AS `t`
LEFT JOIN `wp_podsrel` AS `rel_country` ON
`rel_country`.`field_id` = 645
AND `rel_country`.`item_id` = `t`.`id`
LEFT JOIN `wp_pods_crm_country` AS `country` ON
`country`.`id` = `rel_country`.`related_item_id`
LEFT JOIN `wp_podsrel` AS `rel_cms_park` ON
`rel_cms_park`.`field_id` = 786
AND `rel_cms_park`.`item_id` = `t`.`id`
LEFT JOIN `wp_posts` AS `cms_park` ON
`cms_park`.`ID` = `rel_cms_park`.`related_item_id`
WHERE ( `cms_park`.`id` is not null )
GROUP BY `country`.`id`
ORDER BY `distance`, `t`.`name`, `t`.`id`; Response: Incorrect parameter count in the call to native function 'radians'