DBException

Database 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 'ORDER BY person_attribute_id, films_to_people.order' at line 1

3
			
#0 | #1 | #3 | #4 | #5

File: [STICTH]/var/www/clients/client5/web156/web/stitch/1.0/libraries/dbmodel/DBModel.php

1722: if ( $this->_asc ) $tmp[] = $this->_asc;
1723: if ( $this->_desc ) $tmp[] = $this->_desc;
1724: $q .= ' ORDER BY '.implode(', ', $tmp);
1725: }
1726: $q .= $this->_limit;
1727: foreach ( $this->_params as $p ) {
1728: $q = preg_replace('/\?/', $p, $q, 1);
1729: }
1730: if ( $debug ) flash($q, 'debug');
1731: if ($result = $this->conn->query($q)) {
1732: $this->__result = $result;
1733: $this->_total_count = $this->__result->num_rows;
1734: } else {
1735: echo mysql_error();
1736: }
1737: $this->resetChain();
1738: }
1739:
1740: /**
1741: * Exectures a paginated search

This error is brought to you by Stitch-1.0

One in a million is next Tuesday