SQL Statements simplified and some bugfixing
This commit is contained in:
@@ -61,11 +61,13 @@
|
||||
// look for locations
|
||||
// build query
|
||||
$query = "SELECT
|
||||
location.location_id AS location_id,
|
||||
location.location_name AS location_name,
|
||||
location.location_parent AS location_parent
|
||||
location_id,
|
||||
location_name,
|
||||
location_parent
|
||||
FROM
|
||||
location
|
||||
WHERE
|
||||
location_id != " . $location_id . "
|
||||
ORDER BY
|
||||
location.location_name";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user