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 'AND (is_featured=1 OR is_description_image=1)' at line 1SELECT * FROM family_images WHERE family_id= AND (is_featured=1 OR is_description_image=1)Array ( [0] => Array ( [file] => /home/akoperski/public_html/frontend/includes/classes/Class.Family.php [line] => 70 [function] => query ) [1] => Array ( [file] => /home/akoperski/public_html/frontend/themes/aecillumination/Family.php [line] => 5 [function] => getFamily [class] => Family [type] => -> ) [2] => Array ( [file] => /home/akoperski/public_html/index.php [line] => 35 [args] => Array ( [0] => /home/akoperski/public_html/frontend/themes/aecillumination/Family.php ) [function] => include ) )