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 6333655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:30:24+00:00 2026-05-24T18:30:24+00:00

SELECT * FROM Posts WHERE MATCH (Posts.City) AGAINST (‘Lujan’) Shows 29 rows. But: SELECT

  • 0
SELECT *
FROM Posts
WHERE MATCH (Posts.City) AGAINST ('Lujan') 

Shows 29 rows. But:

SELECT Users.*, Posts.* 
FROM Users 
INNER JOIN Posts ON Users.User = Posts.User 
WHERE MATCH (Posts.City) AGAINST ('Lujan')

Got me zero results, while I should get exactly the same results.

Adding explain to the query echoed:

id  select_type table   type    possible_keys   key key_len ref rows    Extra
1   SIMPLE  Posts   fulltext    city_comparator,user_comparator city_comparator 0       1   Using where
1   SIMPLE  Users   eq_ref  user_unique,user_comparator user_unique 62  chusmix.Posts.User  1    

I have no idea what it means, but also in table users the fulltext index “user_comparator” had a cardinality of 0. While I have registered 10+ users. I also have a Unique index for column Users.User and a primary index for Users.ID.

I changed something and all queries with INNER JOIN stopped working. What can I do to fix this? thanks

  • 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-05-24T18:30:24+00:00Added an answer on May 24, 2026 at 6:30 pm

    It means that there is no row in the Users table which match with the Posts table. If you want to select the rows even if there is no match, use an external join (change the INNER JOIN with a RIGHT JOIN in your case).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my query: $result = mysql_query(SELECT * FROM Posts WHERE MATCH (City) AGAINST
I'm trying this: $result = mysql_query( SELECT Users.*, Posts.* FROM Users INNER JOIN Posts
i have users table and i have posts table i want select from users
I need to do a query like this: SELECT wposts.ID FROM posts wposts WHERE
if (isset($_POST['login'])) { $query = mysql_query(" SELECT id FROM users WHERE username = '".mysql_real_escape_string($_POST['username'])."'
I have a basic MySQL query: $getFeed = SELECT posts.postID, posts.postTitle, ..... FROM posts
I'm trying to select posts using MATCH to find strings that contain the exact
SQL: SELECT COUNT(*) FROM bb_posts post LEFT JOIN bb_topics topic ON topic.topic_id = post.topic_id
SELECT DISTINCT wposts.* FROM wp_2_posts wposts, wp_2_postmeta wpostmeta, wp_2_postmeta wpostmeta1, wp_2_term_taxonomy, wp_2_terms, wp_2_term_relationships WHERE
say I have this $result = mysql_query('SELECT views FROM post ORDER BY views ASC');

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.