Thank you everyone.  I changed the sql to:

SELECT * FROM events AS Event, pages AS Page
     WHERE
          Page.id=Event.page_id AND (
               (Page.url LIKE '{$this->pageInformation['url']}%' AND
Event.show_on_parent_pages=1) OR
               (Page.url='{$this->pageInformation['url']}')
          )

and it started working.  I added a '%' to the end of the LIKE clause.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to