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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:22:59+00:00 2026-06-18T04:22:59+00:00

I have this simple code that works fine: $sQuery = $this->db->query(SELECT domain FROM domainmarket.inventory_domains);

  • 0

I have this simple code that works fine:

$sQuery = $this->db->query("SELECT domain FROM domainmarket.inventory_domains");

but when i use this

$sQuery = $this->db->query("SELECT
                              invDom.domain,
                              sldPhr.phrase1
                            FROM domainmarket.inventory_domains invDom
                              INNER JOIN lux.domain_info domInfo
                                ON invDom.domain = domInfo.domain
                              JOIN lux.sld_stats sldStats
                                ON domInfo.sld = sldStats.sld
                              JOIN lux.sld_phrase sldPhr
                                ON sldPhr.sld = sldStats.sld");

or this

$sQuery = $this->db->query("SELECT
                              invDom.domain,
                              sldPhr.phrase1
                            FROM domainmarket.inventory_domains invDom
                              INNER JOIN lux.domain_info domInfo
                                ON invDom.domain = domInfo.domain
                              JOIN lux.sld_stats sldStats
                                ON domInfo.sld = sldStats.sld
                              JOIN lux.sld_phrase sldPhr
                                ON sldPhr.sld = sldStats.sld
                            WHERE SOUNDEX(SUBSTRING_INDEX(invDom.domain, ".", 1)) = SOUNDEX('love')
                            ORDER BY invDom.appraised_price DESC");

it already gives this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 32 bytes) in
C:\xampp\htdocs\ci_test\system\database\drivers\mysql\mysql_result.php
on line 152

or

Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
near ‘ 1) ) = SOUNDEX(‘love’) ORDER BY invDom.app’ at line 5
SELECT invDom.domain, sldPhr.phrase1 FROM domainmarket.inventory_domains invDom INNER JOIN lux.domain_info
domInfo
ON invDom.domain = domInfo.domain JOIN lux.sld_stats sldStats
ON domInfo.sld = sldStats.sld JOIN lux.sld_phrase sldPhr
ON sldPhr.sld sldStats.sld WHERE SOUNDEX(SUBSTRING_INDEX(invDom.domain,, 1)) = SOUNDEX(‘love’) ORDER
BY invDom.appraised_price DESC Filename:
C:\xampp\htdocs\ci_test\system\database\DB_driver.php Line Number:
33

respectively. Both of these codes work fine in heidiSQL though.. why am i getting this error in codeigniter?

  • 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-18T04:23:00+00:00Added an answer on June 18, 2026 at 4:23 am

    It’s a quoting issue. You wrap your query in " and then use them in your query.

    $sQuery = $this->db->query("
    SELECT invDom.domain, sldPhr.phrase1 FROM domainmarket.inventory_domains invDom
    INNER JOIN lux.domain_info domInfo ON invDom.domain = domInfo.domain
    JOIN lux.sld_stats sldStats ON domInfo.sld = sldStats.sld
    JOIN lux.sld_phrase sldPhr ON sldPhr.sld = sldStats.sld
    WHERE SOUNDEX( SUBSTRING_INDEX(invDom.domain, '.', 1) ) = SOUNDEX('love')
    ORDER BY invDom.appraised_price DESC");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this dropdown code that works fine, it does a simple display. But,
I have this simple code, using Joda-time. Works fine, but I have a problem.
I have this very simple code which works fine until I add a f:ajax
I have very similar multithreaded code elsewhere in my codebase that works fine, but
I have this code: It's very simple. I create an interval, and that works
I have this code, simple socket C example code, it works fine for an
I have this code that works fine for regular signed integers that I am
I have this simple code that speaks for itself. <script language='javascript"> function check() {}
I have this code that asks for a username and password. Just a simple
i have this simple code to load data from other php page using get

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.