Zen Follower
- Join Date:
- Jan 2011
- Posts:
- 339
- Plugin Contributions:
- 0
Unknown Error On Category Pages
I'm having a small problem with https://www.jogrant.com. The index page looks great. The individual story listings look great. The three category pages are not displaying quite accurately...the descriptions are extending into the right sidebar (which is empty), and this message is appearing at the bottom of the pages: WARNING: An Error occurred, please refresh the page and try again.
Refreshing the pages doesn't help. The error log baffles me; I can't figure out where the error is. It says:
[29-Apr-2015 21:46:00 America/Chicago] PHP Fatal error: 1064: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 'from products p, products_description pd
where p.products_id = pd.p' at line 3 :: select distinct p.products_id, p.products_image, p.products_tax_class_id, pd.products_name,
p.products_date_added, p.products_price, p.products_type, p.master_categories_id ,pd.products_description from products p, products_description pd
from products p, products_description pd
where p.products_id = pd.products_id
and pd.language_id = '1'
and p.products_status = 1 order by rand()
and p.products_id in (1, 2) ==> (as called by) /home2/boruma/public_html/jogrant.com/includes/modules/new_products.php on line 50 <== in /home2/boruma/public_html/jogrant.com/includes/classes/db/mysql/query_factory.php on line 155
Anyone have any ideas? :lookaroun Thanks!!