Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:38:57+00:00 2026-06-17T12:38:57+00:00

Here is my SQL statement i am unable to run it: SELECT fm .

  • 0

Here is my SQL statement i am unable to run it:

SELECT fm . * , mp.first_name, mp.last_name, mp.image, mp.member_id
FROM featured_members AS fm
JOIN member_profiles AS mp WHERE fm.member_id = mp.member_id
AND fm.member_type_id =6
AND fm.site_id =1

when i run it it gives me #1054 - Unknown column 'fm.site_id' in 'on clause' error

is there a syntax problem because fm table does have that site_id column but i don’t know why SQL is not fetching it??

My Tables Structure for featured_members is like this:

1 sr_no     
2 member_id     
3 member_type_id 
4 site_id   

and for member_profiles the structure is:

1 member_profile_id 
2 member_id     
3 first_name    
4 middle_name   
5 last_name     
6 gender
7 image
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:38:58+00:00Added an answer on June 17, 2026 at 12:38 pm

    You’re doing it wrong:
    With JOIN’s it is mandatory to use the ON clause, unless otherwise it’s a cross join.

    SELECT fm . * , mp.first_name, mp.last_name, mp.image, mp.member_id
    FROM   featured_members AS fm
    JOIN   member_profiles  AS mp ON ( fm.member_id = mp.member_id )
    WHERE fm.member_type_id =6
    AND fm.site_id =1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a SQL statement that works perfectly in Transact-sql SELECT a.Account_ID, a.First_Name, a.Last_Name, m.number
Here's an SQL statement that phpMyAdmin generated for me: SELECT * FROM `table_name` WHERE
Here's my SQL statement: (select * from items where items.created > curdate() - interval
Here's my database structure: And here's the SQL statement I'm attempting: SELECT t1.Name AS
Here is my SQL statement: SELECT [Item], SUM([Quantity]) AS SumOfQuantity, SUM([Price Each]) AS SumOfTotal,
Hey here is the SQL statement I am using $sql = SELECT number, COUNT(name)
Here is my SQL Statement which is not returning DISTINCT Thread Titles. SELECT DISTINCT
here is the sql codes SELECT roles.role_id, usertype_module.role_id, usertype_module.viewable, usertype_module.editable, usertype_module.createable, modules.modules_id, usertype_module.modules_id, modules.modules,
I have this SQL code here.. SELECT cl.clientid, cl.clientname, cl.billingdate, cp.startdate, cp.expiration, (SELECT COUNT(*)
here is my SQL statement , i would like to find all the games

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.