PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 25th, 2004, 12:37 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 106
Unknown column 'myprod'

Can I get some help with this error? RP 2.8d.

An error was encountered during execution of the query:

SELECT id,user,userid,cat,title,manu,bigimage,views, id*0+RAND() as rand_col FROM rp_products WHERE bigimage !='' AND approved='1' AND cat in (myprod,1,23,35) ORDER BY rand_col DESC

The query returned with an errorcode of:

Unknown column 'myprod' in 'where clause'

Last edited by Tom1234; July 25th, 2004 at 12:56 PM.
Tom1234 is offline   Reply With Quote
Old July 26th, 2004, 02:50 PM   #2 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
Was this sent via an email or on a page you encountered?
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old July 26th, 2004, 06:00 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 106
Email. I have the errors emailed to me. This was generated by a visitor. I am getting regular errors of this type. Any idea on what the problem is?
Tom1234 is offline   Reply With Quote
Old July 27th, 2004, 02:34 PM   #4 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
I'll post a fix for the next update.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old July 27th, 2004, 04:33 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 106
Thanks.

Without knowing what the fix is, I can't tell if you'll be fixing similar errors I am seeing, so here are a few more:

=============
An error was encountered during execution of the query:

SELECT id,user,userid,cat,title,manu,bigimage,views, id*0+RAND() as rand_col FROM rp_products WHERE bigimage !='' AND approved='1' AND cat in (all,1,23,35) ORDER BY rand_col DESC

The query returned with an errorcode of:

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 'all,1,23,35) ORDER BY rand_col DESC' at line 1

==========

An error was encountered during execution of the query:

SELECT id,user,userid,cat,title,manu,bigimage,views, id*0+RAND() as rand_col FROM rp_products WHERE bigimage !='' AND approved='1' AND cat in (last14,1,23,35) ORDER BY rand_col DESC

The query returned with an errorcode of:

Unknown column 'last14' in 'where clause'

===============

An error was encountered during execution of the query:

SELECT id,user,userid,cat,title,manu,bigimage,views, id*0+RAND() as rand_col FROM rp_products WHERE bigimage !='' AND approved='1' AND cat in (fav,1,23,35) ORDER BY rand_col DESC

The query returned with an errorcode of:

Unknown column 'fav' in 'where clause'
Tom1234 is offline   Reply With Quote
Old August 2nd, 2004, 01:28 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 106
Michael,

Did you mean that this is fixed in RP 2.8.1 or the next release after that?

I am still seeing the problem in 2.8.1:

Tom
Tom1234 is offline   Reply With Quote
Old August 2nd, 2004, 06:18 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2004
Posts: 16
i have this problem as well... as a temporary fix, or to hide it at least, you can turn off the side column, since that is where the error is being displayed.
hoonz is offline   Reply With Quote
Old August 2nd, 2004, 11:15 AM   #8 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,858
Try changing line 422 in pp-inc.php from:

if ( !empty($cat) ) {

to:

if ( is_numeric($cat) ) {
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old August 3rd, 2004, 08:08 PM   #9 (permalink)
Registered User
 
Join Date: Jan 2004
Posts: 1
That fixed it for me. Didn't post the issue since Tom hit it first. But eitherway, that fixed all the errors that...

"My Products", "Watchlist", and "Recent Reviews: last day last 7 days last 14 days all products"

...links would produce.
JRKy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Error: Unknown column 'notcat' in 'where clause' mtha Photopost Pro Bug Reports 9 November 3rd, 2005 09:17 PM
SQL Error: Unknown column 'notcat' in 'where clause'(FIXED) qwk98gt Photopost Pro Bug Reports 10 October 21st, 2005 03:37 PM
New Install, unknown column 'albums' in 'field list' elyk Photopost Pro Installation & Upgrades 8 May 26th, 2005 10:09 AM


All times are GMT -5. The time now is 05:17 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0