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 'WHERE listdir ='Y' AND (olname like 'C%' OR petname like 'C%' ) AND memdID ...' at line 1
Fatal error: Uncaught Error: Call to undefined function format_search_results2() in /tools/petmems/search.inc:69 Stack trace: #0 /home/vilvet/public_html/petmems/search.php(2): include() #1 {main} thrown in /tools/petmems/search.inc on line 69