mysqli_sql_exception Object
(
    [message:protected] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Higgins')' at line 1
    [string:Exception:private] => 
    [code:protected] => 1064
    [file:protected] => /home/staginglookingfo/public_html/App/db.php
    [line:protected] => 175
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/staginglookingfo/public_html/App/db.php
                    [line] => 175
                    [function] => query
                    [class] => mysqli
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT id from city where `name` = 'Pichilemu' AND stateid = (SELECT id from state where abbreviation = 'O'Higgins') 
                        )

                )

            [1] => Array
                (
                    [file] => /home/staginglookingfo/public_html/App/db.php
                    [line] => 53
                    [function] => execute_sql
                    [class] => db
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT id from city where `name` = 'Pichilemu' AND stateid = (SELECT id from state where abbreviation = 'O'Higgins') 
                            [1] => 2
                        )

                )

            [2] => Array
                (
                    [file] => /home/staginglookingfo/public_html/listings.php
                    [line] => 198
                    [function] => query
                    [class] => db
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT id from city where `name` = 'Pichilemu' AND stateid = (SELECT id from state where abbreviation = 'O'Higgins') 
                            [1] => 2
                        )

                )

        )

    [previous:Exception:private] => 
    [sqlstate:protected] => 42000
)