Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product Type Book (by moku)

Product Type Book (by moku)

Views: 203,541

Results 21 to 40 of 647
26 May 2006, 5:11 AM
#21
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Product Type Book (by moku)

I just installed Product Type Book, and while I can log into the admin fine, the catalogue has gone haywire.

this is my error msg:
http://www.mysitename.com/zc_install/index.php

Finding it all abit odd, that it was working, then not working.
Zen is installed and admin area is working fine.
Tried classic template, no joy
Tried future zen template, no joy

Am running Zen 1.3

where to start looking?

26 May 2006, 5:49 AM
#22
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: Product Type Book (by moku)

Admin now has gone dead with the same message.

I dont know where else to look, I've reuploaded the core file that was modified (includes/modules/product_listing.php)

Any ideas anyone?

Moku - this is a great mod, from what I saw before it died on me.

26 May 2006, 7:10 AM
#23
marw avatar

marw

New Zenner

Join Date:
Feb 2006
Location:
Hungary
Posts:
39
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi!

this is my error msg:
http://www.mysitename.com/zc_install/index.php

This doesn't seem to be an error message to me, it's the URL of the installer of ZC.

I'm using moku's contibution as well and I haven't experienced anything like this, so I'm a bit confused. It doesn't modify any core files, so at least your index page should work fine.
Could you post an URL to your site?

Or you might try opening http://www.mysitename.com/index.php, without the zc_install.

26 May 2006, 7:35 AM
#24
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi,

Thank you for your reply,

I know its a dud as my store defaulted to the zencart installer which I had already deleted, as part of the security protocols.

As the mod doesn't change the core files, which means I broke it somewhere on the way.

Time for a fresh vanilla install.

butterflyo

28 May 2006, 9:01 AM
#25
marw avatar

marw

New Zenner

Join Date:
Feb 2006
Location:
Hungary
Posts:
39
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi moku!

By default the authors sidebox shows every author in the database, even if you have none of their books in the store. I have a list of authors that I could upload in the DB with a simple SQL command, to make future product creation easier, but a thousand authors without a single book would result in a less than pleasant customer experience.

So, here's a quick fix for this. The SQL query is in book_authors.php, starting at line 2.

$book_authors_query = "select distinct a.book_authors_id, 
                                      book_authors_name, 
                                      book_authors_nickname
                           from " . TABLE_BOOK_AUTHORS . " a,
                           " . TABLE_BOOK_AUTHORS_INFO . " b,
                           " . TABLE_BOOKS_TO_AUTHORS . " c
                          where a.book_authors_id = b.book_authors_id AND
                          	   a.book_authors_id = c.book_authors_id
                          and language_id = '" . (int)$_SESSION['languages_id'] . "'
                          order by book_authors_name";

Cheers!
:smile:

29 May 2006, 12:11 AM
#26
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

MarW:

By default the authors sidebox shows every author in the database, even if you have none of their books in the store. [...]
So, here's a quick fix for this. The SQL query is in book_authors.php, starting at line 2. [...]

Thanks for the fix, I merged it in the file.
And will remember this problem when working on the sidebox of "Products Persons", wich will replace book_authors in next version of "Product Type Book".

You can have a preview of a few features of "Products Persons" here -- it's still in development!

@ butterflyo

I see no reason for "Product Type Book" to broke your site. Maybe if you have installed "column/grid layout" (by DrByte) and add to it the observer/notifier hook, then the authors names and ISBN will not be inserted at the good place (or not at all) but it should not break anything.

29 May 2006, 1:35 PM
#27
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi Moku,

Just to confirm and reassure everyone,
this fantasic mod did NOT break my site.

It was an operator error.

Moku, this is an awsome mod. Thank you.

Butterflyo.

30 May 2006, 4:43 PM
#28
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Product Type Book (by moku)

i tried using this mod and have not been abe to get it to work.
few issues:

  1. when uploading the files all i need to do is change the directory my_template to whatever named template i am using?

  2. when updating our database, it says to change zc_ to whatever one likes. does this also mean where there are no longer create functions but insertions like:
    INSERT INTO zc_product_type_layout (configuration_title

is the point of this line to add it in to the existing table in our database? should not the zc be removed altogether?

i basically installed the mod and then got the error when oading my site and admin page "illegal aceess". i was able to retore my site but want to still use this mod.

thanks

30 May 2006, 7:51 PM
#29
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Product Type Book (by moku)

it seems the source of my prblem is the auto loader files which egin with the follwoing line:

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

what does this mean?

30 May 2006, 11:12 PM
#30
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

tekram:

  1. when uploading the files all i need to do is change the directory my_template to whatever named template i am using?

Yes

tekram:

  1. when updating our database, it says to change zc_ to whatever one likes. does this also mean where there are no longer create functions but insertions like:
    INSERT INTO zc_product_type_layout (configuration_title

is the point of this line to add it in to the existing table in our database? should not the zc be removed altogether?

All (insert, create, everything) "zc_" prefixes of database names must be replaced by the prefix you choose while you installed Zen-Cart. You may have choose something like "zencart_", "zen_", "zc_", "foo_" or "" (nothing).

tekram:

i basically installed the mod and then got the error when oading my site and admin page "illegal aceess". i was able to retore my site but want to still use this mod.

it seems the source of my prblem is the auto loader files which egin with the follwoing line:

if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}

Are you using Zen-Cart 1.3 or 1.3.0.1 ? This contribution is designed to work with ZC 1.3 series. I don't know how it may or may not work on any previous version, and I cannot help if it's the case.

The "IS_ADMIN_FLAG" test condition is used by ZC 1.3 in all files included, not only mines. So it should not be the problem (except, again, if you are not using ZC 1.3 but a previous one).

Good luck

moku

31 May 2006, 8:07 PM
#31
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Product Type Book (by moku)

thanks that seems to have fixed the problem.

now, i was adding the db commands and got the following error:

#1062 - Duplicate entry 'SEARCH_PRODUCT_BOOK_ENABLED' for key 2

31 May 2006, 11:12 PM
#32
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

tekram:

now, i was adding the db commands and got the following error:
#1062 - Duplicate entry 'SEARCH_PRODUCT_BOOK_ENABLED' for key 2

You tried to run theses MySQL queries many times, didn't you? This error message just says that you already have an entry for this key.

You can remove all MySQL entries by running this queries (don't forget to replace the "zc_" with your prefix!) and then running the "add_to_mysql.txt" queries again.

DELETE FROM zc_product_types WHERE type_handler = 'product_book';
DELETE FROM zc_product_type_layout WHERE product_type_id = '7';
DELETE FROM zc_layout_boxes WHERE layout_box_name LIKE 'book_%.php';
DELETE FROM zc_configuration WHERE configuration_key LIKE '%_BOOK_%';
DELETE FROM zc_get_terms_to_filter WHERE get_term_name LIKE 'book_%_id';

(I did not yet tried this delete queries. Please let me know if it does remove all entries of "Product Type Book")

3 Jun 2006, 8:08 AM
#33
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: Product Type Book (by moku)

Can anyone assist?

I've been searching the files for the last four hours and haven't yet worked out how to turn off the following from displaying on the catalogue side when viewing the title.

Misc (bool) 1: Yes
Misc (bool) 2: Yes

Also I would like to get rid of the (p.) after 450:
Pages: 450 p.

I've tried to comment out the echo of the misc (bool) but no joy, and with the write a review button in the middle.

I have the side box review off both centre and middle in layout controller, but this seems to be showing up somewhere else.

I would also like to remove the bullets as well.

thank you

butterflyo

3 Jun 2006, 8:49 AM
#34
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

butterflyo:

I've been searching the files for the last four hours and haven't yet worked out how to turn off the following from displaying on the catalogue side when viewing the title.

Misc (bool) 1: Yes
Misc (bool) 2: Yes

There is switches availables in the admin. Go to "Catalog > Product Types", click one time on "Product - Book" and then a second time, then click on the button "edit layout". You will be able to enable/disable a lot of thinks, among wich are "Show Book Misc (bool) 1" and "Show Book Misc (bool) 2" ;-)

butterflyo:

Also I would like to get rid of the (p.) after 450:
Pages: 450 p.

You can define your own value (wich can be empty) in the language file: "includes/languages/english/product_book_info.php". Find and update this line:

define('TEXT_PRODUCT_BOOK_PAGES_UNIT', ' <abbr title="Pages">p.</abbr>');

to look like this:

define('TEXT_PRODUCT_BOOK_PAGES_UNIT', '');

butterflyo:

and with the write a review button in the middle.
I have the side box review off both centre and middle in layout controller, but this seems to be showing up somewhere else.

Same that for "Misc (bool)", just go to the Product Type Book Layout Page and disable "Show Product Reviews Button".

butterflyo:

I would also like to remove the bullets as well.

You should just add a CSS rule for the id "productDetailsList" in a styleseet file ("includes/templates/template_default/css/stylesheet_books.css" for exemple)
Someting like this:

#productDetailsList {
    list-style-type: none;
}

Good luck!

moku

3 Jun 2006, 8:49 AM
#35
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Product Type Book (by moku)

Hi Moku-

I still have not gotten around to installing your Book Type mod. But I would like to.

First I need to ask a question. I have installed qhome's new "Tabbed Products ''LITE'' version - Delimiter based" v.2.5 mod.

The mod very nicely displays the product description (and other product related objects/data) in a tabbed layout on the product info page.

See http://www.zen-cart.com/forum/showthread.php?t=37182

Do you know if Tabbed Products ''LITE'' is or could be made compatible with your Book product type (or vice versa)?

Thanks.
Woody

3 Jun 2006, 9:02 AM
#36
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi Woody,

Woodymon:

First I need to ask a question. I have installed qhome's new "Tabbed Products ''LITE'' version - Delimiter based" v.2.5 mod.

The mod very nicely displays the product description (and other product related objects/data) in a tabbed layout on the product info page.

See http://www.zen-cart.com/forum/showthread.php?t=37182

Do you know if Tabbed Products ''LITE'' is or could be made compatible with your Book product type (or vice versa)?

As far as I saw in his contrib, its only templates modifications, isn't it?
So I'm quite sure our contribs are compatible (but have to merge files)

I think you just have to merge his tpl_product_info_display.php and my tpl_product_book_info_display.php to get both contribs cool effects :-)

--
moku

3 Jun 2006, 9:55 AM
#37
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Product Type Book (by moku)

moku:

As far as I saw in his contrib, its only templates modifications, isn't it?
So I'm quite sure our contribs are compatible (but have to merge files)

I think you just have to merge his tpl_product_info_display.php and my tpl_product_book_info_display.php to get both contribs cool effects :-)

Thanks. I will investigate.

3 Jun 2006, 10:36 AM
#38
butterflyo avatar

butterflyo

New Zenner

Join Date:
Feb 2006
Posts:
51
Plugin Contributions:
0

Re: Product Type Book (by moku)

Moku,
Thank you for your quick response, it was the only place I didn't look, as I didn't realise you had to click twice.
butterflyo.

5 Jun 2006, 12:09 PM
#39
tekram avatar

tekram

Zen Follower

Join Date:
Feb 2006
Posts:
111
Plugin Contributions:
0

Re: Product Type Book (by moku)

thanksforthe helpmoku. i was able to install the moduleandit wokrs well.

the problem i am having now is that my search function is not working. i get an error when i try to do any search. the error is below. i have not altered the db except with the commands needed for this module. could it possiby be the source?

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 'SELECT DISTINCT
in:
[select count(distinct p.products_id) as total FROM products p LEFT JOIN manufacturers m USING ( manufacturers_id ) , products_description pd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND ( p.products_id IN ( SELECT DISTINCT p.products_id FROM products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%k%' OR p.products_model LIKE '%k%' OR m.manufacturers_name LIKE '%k%' OR (mtpd.metatags_keywords LIKE '%k%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%k%' AND mtpd.metatags_description !='')) ) ) OR p.products_id IN ( SELECT DISTINCT p.products_id FROM products p LEFT JOIN manufacturers m USING ( manufacturers_id ), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id AND mtpd.language_id = 1, product_book_extra pbe, books_to_authors bta, book_authors ba, book_authors_info bai WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND pbe.products_id = p.products_id AND bta.products_id = p.products_id AND bta.book_authors_id = ba.book_authors_id AND ba.book_authors_id = bai.book_authors_id AND bai.language_id = 1 AND ((pd.products_name LIKE '%k%' OR p.products_model LIKE '%k%' OR m.manufacturers_name LIKE '%k%' OR book_authors_name LIKE '%k%'OR book_authors_nickname LIKE '%k%'OR subtitle LIKE '%k%') ) ) OR p.products_id IN ( SELECT DISTINCT p.products_id FROM products p LEFT JOIN manufacturers m USING ( manufacturers_id ), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id AND mtpd.language_id = 1, books_to_genres btg, book_genre bg, book_genre_description bgd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND btg.products_id = p.products_id AND btg.book_genre_id = bg.book_genre_id AND bg.book_genre_id = bgd.book_genre_id AND bgd.language_id = 1 AND ((pd.products_name LIKE '%k%' OR p.products_model LIKE '%k%' OR m.manufacturers_name LIKE '%k%' OR book_genre_name LIKE '%k%') ) ) OR p.products_id IN ( SELECT DISTINCT p.products_id FROM products p LEFT JOIN manufacturers m USING ( manufacturers_id ), products_description pd, categories c, products_to_categories p2c LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id AND mtpd.language_id = 1, books_to_types btt, book_type bt, book_type_description btd WHERE p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND btt.products_id = p.products_id AND btt.book_type_id = bt.book_type_id AND bt.book_type_id = btd.book_type_id AND btd.language_id = 1 AND ((pd.products_name LIKE '%k%' OR p.products_model LIKE '%k%' OR m.manufacturers_name LIKE '%k%' OR book_type_name LIKE '%k%') ) ) ) ]

5 Jun 2006, 12:41 PM
#40
moku avatar

moku

New Zenner

Join Date:
Mar 2006
Location:
Japan
Posts:
49
Plugin Contributions:
0

Re: Product Type Book (by moku)

tekram:

the problem i am having now is that my search function is not working. i get an error when i try to do any search. the error is below. i have not altered the db except with the commands needed for this module. could it possiby be the source?

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 'SELECT DISTINCT
in:[...]

I copy and past your SQL code into my PhpMyAdmin, added the prefix for my tables names ("zc_"), and tried it: it ran without error! (I get the result "total = 44")
My query:

SELECT count( DISTINCT p.products_id ) AS total
FROM zc_products p
LEFT JOIN zc_manufacturers m
USING ( manufacturers_id ) , zc_products_description pd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND (
p.products_id
IN (

SELECT DISTINCT p.products_id
FROM zc_products p
LEFT JOIN zc_manufacturers m
USING ( manufacturers_id ) , zc_products_description pd, zc_categories c, zc_products_to_categories p2c
LEFT JOIN zc_meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR (
mtpd.metatags_keywords LIKE '%k%'
AND mtpd.metatags_keywords != ''
)
OR (
mtpd.metatags_description LIKE '%k%'
AND mtpd.metatags_description != ''
)
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM zc_products p
LEFT JOIN zc_manufacturers m
USING ( manufacturers_id ) , zc_products_description pd, zc_categories c, zc_products_to_categories p2c
LEFT JOIN zc_meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, zc_product_book_extra pbe, zc_books_to_authors bta, zc_book_authors ba, zc_book_authors_info bai
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND pbe.products_id = p.products_id
AND bta.products_id = p.products_id
AND bta.book_authors_id = ba.book_authors_id
AND ba.book_authors_id = bai.book_authors_id
AND bai.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_authors_name LIKE '%k%'
OR book_authors_nickname LIKE '%k%'
OR subtitle LIKE '%k%'
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM zc_products p
LEFT JOIN zc_manufacturers m
USING ( manufacturers_id ) , zc_products_description pd, zc_categories c, zc_products_to_categories p2c
LEFT JOIN zc_meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, zc_books_to_genres btg, zc_book_genre bg, zc_book_genre_description bgd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND btg.products_id = p.products_id
AND btg.book_genre_id = bg.book_genre_id
AND bg.book_genre_id = bgd.book_genre_id
AND bgd.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_genre_name LIKE '%k%'
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM zc_products p
LEFT JOIN zc_manufacturers m
USING ( manufacturers_id ) , zc_products_description pd, zc_categories c, zc_products_to_categories p2c
LEFT JOIN zc_meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, zc_books_to_types btt, zc_book_type bt, zc_book_type_description btd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND btt.products_id = p.products_id
AND btt.book_type_id = bt.book_type_id
AND bt.book_type_id = btd.book_type_id
AND btd.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_type_name LIKE '%k%'
)
)
)
)

For your information, your query was this:

SELECT count( DISTINCT p.products_id ) AS total
FROM products p
LEFT JOIN manufacturers m
USING ( manufacturers_id ) , products_description pd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND (
p.products_id
IN (

SELECT DISTINCT p.products_id
FROM products p
LEFT JOIN manufacturers m
USING ( manufacturers_id ) , products_description pd, categories c, products_to_categories p2c
LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR (
mtpd.metatags_keywords LIKE '%k%'
AND mtpd.metatags_keywords != ''
)
OR (
mtpd.metatags_description LIKE '%k%'
AND mtpd.metatags_description != ''
)
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM products p
LEFT JOIN manufacturers m
USING ( manufacturers_id ) , products_description pd, categories c, products_to_categories p2c
LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, product_book_extra pbe, books_to_authors bta, book_authors ba, book_authors_info bai
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND pbe.products_id = p.products_id
AND bta.products_id = p.products_id
AND bta.book_authors_id = ba.book_authors_id
AND ba.book_authors_id = bai.book_authors_id
AND bai.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_authors_name LIKE '%k%'
OR book_authors_nickname LIKE '%k%'
OR subtitle LIKE '%k%'
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM products p
LEFT JOIN manufacturers m
USING ( manufacturers_id ) , products_description pd, categories c, products_to_categories p2c
LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, books_to_genres btg, book_genre bg, book_genre_description bgd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND btg.products_id = p.products_id
AND btg.book_genre_id = bg.book_genre_id
AND bg.book_genre_id = bgd.book_genre_id
AND bgd.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_genre_name LIKE '%k%'
)
)
)
OR p.products_id
IN (

SELECT DISTINCT p.products_id
FROM products p
LEFT JOIN manufacturers m
USING ( manufacturers_id ) , products_description pd, categories c, products_to_categories p2c
LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id = p2c.products_id
AND mtpd.language_id =1, books_to_types btt, book_type bt, book_type_description btd
WHERE p.products_status =1
AND p.products_id = pd.products_id
AND pd.language_id =1
AND p.products_id = p2c.products_id
AND p2c.categories_id = c.categories_id
AND btt.products_id = p.products_id
AND btt.book_type_id = bt.book_type_id
AND bt.book_type_id = btd.book_type_id
AND btd.language_id =1
AND (
(
pd.products_name LIKE '%k%'
OR p.products_model LIKE '%k%'
OR m.manufacturers_name LIKE '%k%'
OR book_type_name LIKE '%k%'
)
)
)
)

If you diff both codes, you will see that there is no other difference that the tables names (because I added the prefixes "zc_").

My MySQL server is version 4.1.11 (4.1.11-Debian_4sarge2-log). Maybe there is something to look on this side?
Sorry, I'm not an SQL guru :-(

If anybody else could help, please!

Regards,

moku