MySQL

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDatabasesMySQL

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old December 29th, 2012, 01:16 PM
Dimaz Dimaz is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 Dimaz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 33 sec
Reputation Power: 0
Why can not I select a column?

Hi from Russia Help me please.
sql Code:
Original - sql Code
  1. SELECT
  2.   cabinet.name_test,
  3.   MIN(answers.id),
  4.   a1.answer_id AS answer_id,
  5.   a2.answer_id AS answer_id2
  6. FROM cabinet
  7.   JOIN answers a1 ON a1.test_id = cabinet.test_id
  8.     AND a1.user_id = '184918649' AND a1.friend_id = '353281'
  9.   LEFT JOIN answers a2 ON a2.test_id = cabinet.test_id
  10.     AND a2.user_id = '353281'
  11. GROUP BY answer_id, cabinet.name_test

Displays an error:
#1054 - Unknown column 'answers.id' in 'field list'
What am I doing wrong? Thanks in advance.

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesMySQL > Why can not I select a column?


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap