Unknown column 'nid' in 'field list' query: SELECT nid FROM playlist_relate WHERE child_id = 0 in /public_html/ADR/includes/database.mysql.inc on line 66

Hellllllp! I'm not very familiar with PHP and MYSQL. I'm a Drupal newbie. Can someone explain in layman's terms? Much appreciated.

CommentFileSizeAuthor
#3 playlist.module_1.patch656 bytesoadaeh

Comments

zirafa’s picture

Component: Code » Documentation
Priority: Critical » Normal

Hi, did you run the database script that came with all the files? In addition to uploading the files to your server, you'll need to run a script on your database in order for this module to work.

alphadawg’s picture

Hi Zirafa,
Thanks for the response. I installed the Playlist.mysql to my database as described in the install file when I uploaded the module initially.

oadaeh’s picture

Category: support » bug
StatusFileSize
new656 bytes

Okay, I have found the cause and cure for this problem. In two places, $nid is used where $parent_id should be. The patch will make everything all better. :^) It helped me to find this because I noticed a problem with audio nodes not recovering their playlist information. I suspected the two issues were related, and they were.

oadaeh’s picture

Okay, it's nid and parent_id, rather than $nid and $parent_id. :^)

zirafa’s picture

Status: Active » Fixed

Patch committed. Thanks.

alphadawg’s picture

Thanks to all of you for your kind help. It's very much appreciated.

zirafa’s picture

Status: Fixed » Closed (fixed)