Welcome Guest, Not a member yet? Register   Sign In
Problem with join
#7

[eluser]überfuzz[/eluser]
[quote author="Sein Kraft" date="1260045300"]error:
Quote:Unknown column 'roles.id' in 'on clause'

SELECT * FROM (`users`) JOIN `roles` as id_roles ON `roles`.`id` = `users`.`role` JOIN `ranks` as id_ranks ON `ranks`.`id` = `users`.`rank` LIMIT 1
[/quote]

Well John Betong assumed that you actually had a table called roles with a column called id. Could you show us your tables? Not type how to go about creating them. Undecided


Messages In This Thread
Problem with join - by El Forum - 12-04-2009, 06:01 PM
Problem with join - by El Forum - 12-04-2009, 10:41 PM
Problem with join - by El Forum - 12-05-2009, 01:08 AM
Problem with join - by El Forum - 12-05-2009, 06:04 AM
Problem with join - by El Forum - 12-05-2009, 07:42 AM
Problem with join - by El Forum - 12-05-2009, 08:35 AM
Problem with join - by El Forum - 12-05-2009, 09:46 AM
Problem with join - by El Forum - 12-05-2009, 10:03 AM
Problem with join - by El Forum - 12-05-2009, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB