Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    Posts
    311
    Thanks
    17
    Thanked 0 Times in 0 Posts

    Can't get rid of 1054 error.

    Using SugarCRM, I have generated the following USER SPECIFIC error.

    Error retrieving Inspections list: Query Failed:SELECT inspections.* FROM inspections where (inspections.deleted=0) ORDER BY order_no asc::MySQL error 1054: Unknown column 'order_no' in 'order clause'
    I believe I have remedied the cause, however the bogus query seems to be lodged in some cache somewhere. I have flushed the users table, I have flushed the inspections table, I have dropped and reinstalled the module entirely, but can't seem get rid of the error for specific users. Any thoughts?

  • #2
    New Coder
    Join Date
    Jun 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am not the best debugger myself, but I think your problem may lie within your punctuation. Try using different ways to say that. Maybe the
    where (inspections.deleted=0) ORDER BY order_no asc
    should be WHERE inspections.deleted='0' ORDER BY order_no ASC. I captialized the MySQL commands because its ten times easier to read. It is just a guess though, I am probably wrong. Good luck!

  • #3
    New Coder
    Join Date
    Jun 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Let's see your SQL code for creating the table.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •