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 and don'ts%' 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 visible = 1 AND taglist like '%do's and don'ts%' LIMIT 5

/var/www/html/sites/justmommies.com/redesign/releases/2017-11-14_10-00-54/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-11-14_10-00-54/app/controllers/ApiController.php(88): CDbCommand->query()
83 
84         if ( empty($data) || is_null($data)) {
85 
86             $connection = Yii::app()->dbvb;
87             $command=$connection->createCommand($sql);
88             $dataReader=$command->query();
89 
90             $data = array();
91             foreach($dataReader as $row) { 
92 
93                 $firstpostid = $row['firstpostid'];
#11
+
 /var/www/html/sites/justmommies.com/redesign/releases/2017-11-14_10-00-54/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-12-15 23:23:18 Apache Yii Framework/1.1.17

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

Is it Safe to Use a Vibrator During Pregnancy?

By JustMommies staff

Some couples wonder if it is safe to have sex during pregnancy. This may be more worrisome in the beginning of pregnancy, especially if this is a first pregnancy. Dads may worry if they could hurt the baby somehow and moms may have similar fears as well. Couples should know that it is perfectly safe
» Read more

Herbal Teas and Pregnancy: Is it safe to drink herbal teas during pregnancy?

By JustMommies staff

The list of things that women should and shouldn’t eat or drink during pregnancy can be confusing and hard to keep track of. Like most pregnant women you want to steer clear of consuming anything that is not safe for pregnancy. You know caffeine is something you should avoid or at the very least
» Read more

Saunas, Hot Tubs & Hot Baths During Pregnancy

By JustMommies staff

Sitting in a sauna or hot tub might seem like the perfect antidote for pregnancy aches and pains, but the medical truth is that pregnant women should stay out of saunas and hot tubs. The high temperatures in those environments can raise core body temperature, which could be dangerous for expectant mothers
» Read more

Toxoplasmosis: Cat litter and Pregnancy

By JustMommies staff

If you are pregnant you have probably heard that you should not change cat litter during your pregnancy. You may be wondering why. Changing cat litter puts you at risk for contracting an infection called toxoplasmosis. There are several ways that a pregnant woman could contract toxoplasmosis but cats
» Read more

Is Sleeping on Your Back During Pregnancy OK?

By JustMommies staff

The latter stages of pregnancy bring all kinds of discomforts, and many pregnant moms can add sleeplessness to the list. You feel like you’re huge, you can’t get a comfortable position in the bed, and when you do finally find one, you have to get up to go to the bathroom. Some pregnant moms find
» Read more

Heating Pads and Pregnancy

By JustMommies staff

Is it safe to use a heating pad during pregnancy? Heating pads are generally safe to use during pregnancy, as long as you aren’t placing the heating pad directly on your belly. Using a heating pad for sore muscles or an occasional back ache is fine. The concern with pregnant women and heat is that
» Read more

Flying and Pregnancy – Do’s and Don’ts

By JustMommies staff

According to the American College of Obstetricians and Gynecologists (ACOG), healthy pregnant women can fly safely until their 36th week. The best time for pregnant women to fly is between weeks 18 and 24, since the chances of miscarriage and premature labor are both relatively low then. So if you’ve
» Read more

Tattoos and Pregnancy

By Maria T. Pepin

If you are pregnant and thinking about getting a tattoo, you may want to wait until after the baby is born. Pregnancy is not the best time to make body alterations. You want to do everything you can to keep yourself and your baby healthy. Most qualified licensed professionals will not knowingly tattoo
» Read more

Do's and Don’ts: Cleaning Products and Pregnant Women

By JustMommies staff

It seems that every day there’s another media report with bad environmental news, and pregnant women are especially sensitive about accidentally exposing the babies growing inside them to anything that could be harmful. Many women worry if cleaning products are safe to use during pregnancy. In fact,
» Read more

Is Aspirin Safe During Pregnancy?

By JustMommies staff

Aspirin is not recommended during pregnancy, particularly in the third trimester. If you have taken aspirin early in pregnancy or before you found out you were pregnant, don't worry. Studies have not shown aspirin in low amounts to be hazardous to baby. There are several reasons to avoid aspirin in pregnancy.
» Read more