diff --git a/src/global/code/Views.class.php b/src/global/code/Views.class.php index 3e609cd6..4f4b5f06 100644 --- a/src/global/code/Views.class.php +++ b/src/global/code/Views.class.php @@ -908,7 +908,7 @@ public static function getFormViews($form_id, $account_id = "") $db->query(" SELECT * FROM {PREFIX}views v, {PREFIX}list_groups lg - WHERE v.form_id = $form_id AND + WHERE v.form_id = :form_id AND v.group_id = lg.group_id ORDER BY lg.list_order, v.view_order ");