Error

Error message

PDOException: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'srv47513_drupal7.n.sticky' which is not in SELECT list; this is incompatible with DISTINCT: SELECT DISTINCT n.nid AS nid, n.title AS title, n.created AS created, fd.event_calendar_date_value AS event_calendar_date_value FROM {node} n LEFT OUTER JOIN {field_data_event_calendar_date} fd ON fd.entity_id = n.nid WHERE (n.status = :db_condition_placeholder_0) AND (DATE(event_calendar_date_value) = :date) AND (n.type IN (:db_condition_placeholder_1, :db_condition_placeholder_2, :db_condition_placeholder_3, :db_condition_placeholder_4, :db_condition_placeholder_5, :db_condition_placeholder_6, :db_condition_placeholder_7)) AND (n.language IN (:db_condition_placeholder_8, :db_condition_placeholder_9)) ORDER BY n.sticky DESC, n.created DESC; Array ( [:db_condition_placeholder_0] => 1 [:date] => 2017.02.04 [:db_condition_placeholder_1] => event_calendar [:db_condition_placeholder_2] => 0 [:db_condition_placeholder_3] => 0 [:db_condition_placeholder_4] => 0 [:db_condition_placeholder_5] => 0 [:db_condition_placeholder_6] => 0 [:db_condition_placeholder_7] => 0 [:db_condition_placeholder_8] => ru [:db_condition_placeholder_9] => und ) in pretty_calendar_select_nodes() (line 557 of /home/srv47513/htdocs/www/sites/all/modules/pretty_calendar/pretty_calendar.module).
The website encountered an unexpected error. Please try again later.