octeam@opencaching.us sql_error: http://www.opencaching.us/ 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-50, 50' at line 22 -------------------- Array ( [0] => Array ( [file] => /home/oardksgs/public_html/lib/clicompatbase.inc.php [line] => 388 [function] => sql_error [args] => Array ( ) ) [1] => Array ( [file] => /home/oardksgs/public_html/newcaches.php [line] => 66 [function] => sql [args] => Array ( [0] => SELECT `caches`.`cache_id` `cacheid`, `user`.`user_id` `userid`, `caches`.`country` `country`, `caches`.`type` `type`, `caches`.`wp_oc` `wp`, `caches`.`name` `cachename`, `caches`.`wp_oc` `wp_name`, `user`.`username` `username`, `caches`.`date_created` `date_created`, `caches`.`date_hidden` `date_hidden`, IFNULL(`cache_location`.`adm3`,'') `adm3`, IF((`caches`.`date_hidden`>`caches`.`date_created`), `caches`.`date_hidden`, `caches`.`date_created`) AS `date`, `cache_type`.`icon_large` `icon_large` FROM (`caches` LEFT JOIN `cache_location` ON `caches`.`cache_id` = `cache_location`.`cache_id`), `user`, `cache_type` WHERE `caches`.`date_hidden` <= NOW() AND `caches`.`date_created` <= NOW() AND `caches`.`user_id`=`user`.`user_id` AND `cache_type`.`id` = `caches`.`type` AND `caches`.`status` = 1 ORDER BY IF((`caches`.`date_hidden`>`caches`.`date_created`), `caches`.`date_hidden`, `caches`.`date_created`) DESC, `caches`.`cache_id` DESC LIMIT -50, 50 ) ) ) Site Error - OpenCaching North America - Geocaching in North America
 
 
  

Site Error

Something went wrong. If the error persists, please contact the site admin.

Page: sql_error
Information Message: Database error.