Fix stops by suburb
--- a/include/db/stop-dao.inc.php
+++ b/include/db/stop-dao.inc.php
@@ -101,10 +101,10 @@
function getStopsBySuburb($suburb) {
global $conn;
- $query = "Select * from stops where zone_id LIKE :suburb order by stop_name;";
- debug($query, "database");
- $query = $conn->prepare($query);
- $suburb = "%" . $suburb . ";%";
+ $query = "Select * from stops where stop_desc LIKE :suburb order by stop_name;";
+ debug($query, "database");
+ $query = $conn->prepare($query);
+ $suburb = "%<br>Suburb: %" . $suburb . "%";
$query->bindParam(":suburb", $suburb);
$query->execute();
if (!$query) {