Context
-------

$_SERVER: Array
(
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
    [PWD] => /usr/local/cpanel/cgi-sys
    [SHLVL] => 0
    [PHP_FCGI_MAX_REQUESTS] => 15000
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /chirurghi-estetici.html/provincia-agrigento
    [QUERY_STRING] => route=chirurghi-estetici&province=agrigento
    [REQUEST_METHOD] => GET
    [SERVER_PROTOCOL] => HTTP/1.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REDIRECT_URL] => /chirurghi-estetici.html/provincia-agrigento
    [REDIRECT_QUERY_STRING] => route=chirurghi-estetici&province=agrigento
    [REMOTE_PORT] => 33078
    [SCRIPT_FILENAME] => /home2/r4in1tfo/public_html/index.php
    [SERVER_ADMIN] => webmaster@4in1.it
    [CONTEXT_DOCUMENT_ROOT] => /home2/r4in1tfo/public_html
    [CONTEXT_PREFIX] => {empty_string}
    [REQUEST_SCHEME] => http
    [DOCUMENT_ROOT] => /home2/r4in1tfo/public_html
    [REMOTE_ADDR] => 54.91.171.216
    [SERVER_PORT] => 80
    [SERVER_ADDR] => 46.30.247.52
    [SERVER_NAME] => www.elencochirurghi.com
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => {empty_string}
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-us,en-gb,en;q=0.7,*;q=0.3
    [HTTP_USER_AGENT] => CCBot/2.0 (http://commoncrawl.org/faq/)
    [HTTP_ACCEPT_ENCODING] => x-gzip, gzip, deflate
    [HTTP_HOST] => www.elencochirurghi.com
    [UNIQUE_ID] => VcAS4i4e9zQAAA7CMcYAAABa
    [REDIRECT_STATUS] => 200
    [REDIRECT_UNIQUE_ID] => VcAS4i4e9zQAAA7CMcYAAABa
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1438651106.4
    [REQUEST_TIME] => 1438651106
    [argv] => Array
        (
            [0] => route=chirurghi-estetici&province=agrigento
        )
  
    [argc] => 1
)

$_POST: Array
(
)

$_GET: Array
(
    [route] => chirurghi-estetici
    [province] => agrigento
)

$_FILES: Array
(
)

$_SESSION: Array
(
    [fSession::type] => normal
    [fSession::expires] => 1438654706
)

$_COOKIE: Array
(
)
Uncaught fSQLException
----------------------
{doc_root}/index.php(32): CurrentInfo->current_page_selection()
{doc_root}/php/classes/CurrentInfo.php(395): Shortcode::execute('<p>[partners pa...')
{doc_root}/php/classes/Shortcode.php(80): preg_replace_callback('/(.?)\\[(categor...', 'Shortcode::do_t...', '<p>[partners pa...')
[internal function]: Shortcode::do_tag(Array)
{doc_root}/php/classes/Shortcode.php(92): call_user_func('shortcode_partn...', Array, '', 'partners')
[internal function]: shortcode_partners(Array, '', 'partners')
{doc_root}/theme/default/shortcodes/partners.php(567): fDatabase->query('SELECT DISTINCT...')
{doc_root}/php/flourishlib/fDatabase.php(2934): fDatabase->run('SELECT DISTINCT...', 'fResult')
{doc_root}/php/flourishlib/fDatabase.php(3027): fDatabase->performQuery('SELECT DISTINCT...', Object(fResult), Array)
{doc_root}/php/flourishlib/fDatabase.php(2564): fDatabase->checkForError(Object(fResult), NULL)
{doc_root}/php/flourishlib/fDatabase.php(455)
MySQL error (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASCLIMIT 0, 10' at line 1) in SELECT DISTINCT bc.*, c.city, p.code as province_code FROM business_customers bc LEFT JOIN business_customers_categories bcc ON bc.id = bcc.business_customer_id LEFT JOIN cities c ON c.id = bc.city_id LEFT JOIN provinces p ON p.id = c.province_id WHERE project_id = 2 AND visible = 'Y' AND active = 'A' ORDER BY IF(bc.subscription IN('E', 'P', 'B'), 1, IF(bc.subscription = 'M', 2, IF(bc.subscription = 'T', 3, 0))) DESC, IF(bc.subscription IN('E', 'P', 'B'), bc.id, bc.name) ASCLIMIT 0, 10