Jump to content

Ошибка в синтаксисе запроса


Recommended Posts

Всем привет.

При заходе в раздел сайта выдается ошибка:

SQLSTATE[42000]: Syntax error or access violation: 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 ',,Leader, FROM `accounts` `t` WHERE != 0' at line 1

Строка с запросом:

$monitors = self::model()->findAll(array('select'=>'`id`,`mon_name`','condition'=>'active = 1'));

Как его переделать, чтобы все заработало? Я сам в этом не очень силен.

Edited by hawk2012
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...