Do's and Don'ts

JustMommies Tools

Baby Name Finder

FIND ALPHABETICALLYFIND BY ORIGIN
» Top Baby Boy Names » Top Baby Girl Names

Pregnancy Calendar

Track your pregnancy day by day.

Enter your due date:

Ovulation Calendar

Find your most fertile days.

Average cycle length:

From the Message Boards

CDbException

CDbException

CDbCommand failed to execute the SQL statement: 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 's%' LIMIT 5' at line 4. The SQL statement executed was: SELECT t.firstpostid, t.threadid, t.title, t.replycount, t.dateline AS created, t.postuserid AS userid,
t.postusername AS name, f.title_clean as forum_title, f.forumid as forumid
FROM thread t INNER JOIN forum f ON f.forumid = t.forumid
WHERE f.showprivate = 0 AND f.password = '' AND taglist like '%do's%' LIMIT 5

/var/www/html/sites/justmommies.com/redesign/releases/2017-07-11_10-42-35/app/lib/vendor/yiisoft/yii/framework/db/CDbCommand.php(543)

531         {
532             if($this->_connection->enableProfiling)
533                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
534 
535             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
536             $message=$e->getMessage();
537             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
538                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
539 
540             if(YII_DEBUG)
541                 $message.='. The SQL statement executed was: '.$this->getText().$par;
542 
543             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
544                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
545         }
546     }
547 
548     /**
549      * Builds a SQL SELECT statement from the given query specification.
550      * @param array $query the query specification in name-value pairs. The following
551      * query options are supported: {@link select}, {@link distinct}, {@link from},
552      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
553      * {@link limit}, {@link offset} and {@link union}.
554      * @throws CDbException if "from" key is not present in given query parameter
555      * @return string the SQL statement

Stack Trace

#1
+
 /var/www/html/sites/justmommies.com/redesign/releases/2017-07-11_10-42-35/app/controllers/ApiController.php(107): CDbCommand->query()
102 
103         if ( empty($data) || is_null($data)) {
104 
105             $connection = Yii::app()->dbvb;
106             $command=$connection->createCommand($sql);
107             $dataReader=$command->query();
108 
109             $data = array();
110             foreach($dataReader as $row) { 
111 
112                 $firstpostid = $row['firstpostid'];
#11
+
 /var/www/html/sites/justmommies.com/redesign/releases/2017-07-11_10-42-35/www/index.php(47): CApplication->run()
42 ini_set('display_errors', 1);
43 
44 require('./../app/lib/vendor/autoload.php');
45 require('./../app/lib/vb.php');
46 
47 Yiinitializr\Helpers\Initializer::create('./../app', 'main', array('env', 'dev'))->run();
48 
2017-07-25 15:05:27 Apache Yii Framework/1.1.17

» Check out the friendliest message board for moms and moms-to-be!

Quitting Smoking During Pregnancy

When you're not pregnant, you can take just about any pill, wear any patch or chew any gum. However, everything changes once you conceive. Quitting smoking is a huge step toward a greater level of health and wellness--for both you and your baby. Choosing not to quit can have grave impacts like stillbirth,
» Read more

Is it Safe to Lose Weight When Pregnant?

By JustMommies staff

Check with your doctor. The first and most important thing to remember when considering what is safe and reasonable regarding your body, weight, and pregnancy, is to ask your doctor. If you are considering weight loss while you are pregnant, many variables will determine what and how much exercise or
» Read more

Alcohol during Pregnancy: Is It Really that Bad to Have a Drink When Pregnant?

By JustMommies staff

Many doctors are worried that women are getting mixed signals when it comes to alcohol during pregnancy. Some research indicates that moderate consumption of alcohol is okay, but many specialists contend that this is not a green light to start drinking through pregnancy. The research is still fairly
» Read more

Foods to Avoid During Pregnancy

By Maria T. Pepin

It’s important to eat well-balanced meals and take prenatal vitamins during your pregnancy so that your developing baby can get all the essential nutrients it needs to grow strong. You should consume about 300 additional calories a day during this time. Many women wonder which foods are safe and which
» Read more

Toxins To Avoid During Pregnancy & Beyond

By Inhabitots

It's the good news and the bad news - in today's day and age we know so much about how babies in utero are affected by their mother's exposure to chemicals and toxins. While no woman wants to spend this joyful time in her life worrying herself sick, knowledge is power, and it's both empowering and beneficial
» Read more

Warning: 10 Things Pregnant Women Should Avoid

By Jennifer Polimino

Nothing is more important to an expectant mom than the health and safety of her unborn child. Fortunately, you can protect your baby by avoiding risks that can complicate a pregnancy or cause harm to your baby. This list of 10 things pregnant women should avoid will answer questions and put your mind
» Read more

Tanning During Pregnancy: Is It Safe?

By Nancy Da Silva

You and the sun are one. You love nothing more than sitting out in the sun, relaxing and soaking up its rays and getting that perfect golden tan. Once the cold weather hits, not one to let Old Man Winter steal your fun, you head over to your friendly neighbourhood tanning salon for some rays via more
» Read more

Pregnancy Don'ts

By JustMommies staff

Pregnancy can be a time of concern for women. Knowing what to do and what not to do is not always clear. To help you with all the pregnancy don'ts we have created a list of the top 7 things you should avoid during pregnancy. 1. Alcohol - Although most people know this, it is important to remember to
» Read more

Hair Dye and Pregnancy

By JustMommies staff

Is it safe to color your hair during pregnancy? If you aren’t a natural blonde, brunette or redhead, you may be one of the hundreds of women that use hair dye as their secret weapon to looking beautiful. Now that you are pregnant you may be wondering if it is safe to continue coloring your hair during
» Read more

Is Oral Sex Safe During Pregnancy

By JustMommies staff

This may seem like a strange question, but when it comes to sex and pregnancy couples often wonder what is and isn’t okay to do and this particular question may be awkward or embarrassing to ask your doctor. Generally, receiving oral sex from your partner is not something to worry about during pregnancy.
» Read more