Where called: line 317 of connect (in /home/jouwvaka/public_html/system/classes/class_connect.php)
Where called: line 61 of connect (in /home/jouwvaka/public_html/sites/jouwvakantie_v2/page_destination.php)
Where called: line 422 of Root (in /home/jouwvaka/public_html/sites/jouwvakantie_v2/index.php)
Where called: line 220 of Root (in /home/jouwvaka/public_html/system/in_sites.php)
Where called: line 88 of Root (in /home/jouwvaka/public_html/index.php)

query =
Array
(
[0] => SELECT
[1] => t.*
[2] => FROM
[3] => jvv2_trips AS t
[4] => INNER JOIN
[5] => jvv2_trips_partners tp ON tp.trip_id = t.id AND tp.updated = 1 AND tp.ignore_trip = 0 AND tp.sid = 7 AND tp.partner_id IN(11,7,21,2,41,39,36,16,54,55,4,48)
[6] => WHERE
[7] => t.sid = '7' AND t.price != 0 AND t.ignore_trip = 0 AND t.price > '450' AND t.prio != 0
[8] =>
[9] => AND t.place_id =
[10] =>GROUP BY t.id [11] => ORDER BY
[12] => t.has_content DESC, t.prio_overwrite DESC, t.prio DESC
[13] => LIMIT 3
)


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 'GROUP BY t.id ORDER BY t.has_content DESC, t.prio_overwrite DESC, t.' at line 11