Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 23rd, 2007, 01:44 PM
Registered User
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default mysql #1064 error

If I execute this command in my pc running netserver it works, but when I try to execute it at the university server it gives me the syntax error:

SELECT pd.pd_id, pd.pd_name, pd.pd_price, pd.pd_thumbnail, pd.pd_qty,
                c.cat_id, o.od_id, o.pd_id
        FROM tbl_product pd, tbl_category c , tbl_order_item o
        WHERE (pd.cat_id = c.cat_id) AND (pd.pd_id = o.pd_id)
                and c.cat_parent_id IN (select cc.cat_parent_id from
                tbl_category cc WHERE cc.cat_id = 19)
        ORDER BY pd.pd_name;

What is wrong?


Similar Threads
Thread Thread Starter Forum Replies Last Post
1064 error kennymain MySQL 0 July 16th, 2005 03:19 PM
error in placing mysql.h jl_joanne Visual C++ 3 February 18th, 2005 07:09 PM
error 1064 SQL syntax puzzle ericwright Beginning PHP 5 April 24th, 2004 09:20 PM
Weird MySQL error cmiller PHP Databases 3 April 6th, 2004 04:08 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.