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

  • SEARCH
  • Home
  • 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 7776219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:49:32+00:00 2026-06-01T17:49:32+00:00

I have an SQL query that works on older version of MySQL4 but won’t

  • 0

I have an SQL query that works on older version of MySQL4 but won’t work on my current version of 5.5
I’m hoping someone can see what I can’t see with this.

select tblprefix_groups_permissions.permission_name
  from tblprefix_groups_permissions, tblprefix_users, tblprefix_permissions
 where tblprefix_groups_permissions.permission_name = tblprefix_permissions.permission_name
 and tblprefix_groups_permissions.group_id = tblprefix_users.group_id
 and (tblprefix_users.user_id = '==NUMERIC ID=='
 and (tblprefix_permissions.permission_name = 'ADMIN::SETTINGS::VIEW'
 or tblprefix_permissions.permission_name = 'ALL'))

The SQL statement should be pretty self explanitory as to what it does, I don’t see where the hangup could be. It is suppost to return a list if it returns nothing then the user is rejected.

  • 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-01T17:49:33+00:00Added an answer on June 1, 2026 at 5:49 pm

    The statement is correct, I overlooked the fact that the statement also checks to make sure the Permission is in the Master Permissions table ie: tblprefix_permissions.permission_name I had not put the permission into the Master Permissions table yet

    So that makes me stupid or just tired LOL sorry guys, good work though and thanks for the quick responses

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

Sidebar

Related Questions

I have written a SQL query that works just fine, but am having a
I have this sql search query that works, but it only works if votes
I have a SQL query that I'm trying to debug. It works fine for
I have a problem with an sql query that will not work if I
I have a SQL query that I'm trying to write, but I'm not quite
I have a select query that works fine. But when I wrap it into
I have this SQL Query that pulls data from 3 tables. I am unable
I have a SQL query that returns a Datatable: var routesTable = _dbhelper.Select(SELECT [RouteId],[UserId],[SourceName],[CreationTime]
I have an SQL query that returns all companies records ignore the ones with
Suppose I have a SQL Query that isn't really nice. The SQL Query has

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.