Ninjakreborn Posted June 12, 2012 Share Posted June 12, 2012 Any feedback on the following error I am facing. Thanks. SQL select tf.Id,tf.Name,tf.LName,tf.Rank,tf.Category WHERE tf.Id not in (select fighter_id from tbl_player_fighter where league_id=91) AND tf.Status ='1' Error #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 'WHERE tf.Id not in (select fighter_id from tbl_player_fighter where league_id=91' at line 1 Quote Link to comment https://forums.phpfreaks.com/topic/264052-need-some-help-with-a-mysql-errorhavent-see-this-before/ Share on other sites More sharing options...
PFMaBiSmAd Posted June 12, 2012 Share Posted June 12, 2012 Theres no FROM table_name term in that query. Quote Link to comment https://forums.phpfreaks.com/topic/264052-need-some-help-with-a-mysql-errorhavent-see-this-before/#findComment-1353187 Share on other sites More sharing options...
JonnoTheDev Posted June 12, 2012 Share Posted June 12, 2012 SELECT tf.Id,tf.Name,tf.LName,tf.Rank,tf.Category FROM tablename Quote Link to comment https://forums.phpfreaks.com/topic/264052-need-some-help-with-a-mysql-errorhavent-see-this-before/#findComment-1353188 Share on other sites More sharing options...
Ninjakreborn Posted June 12, 2012 Author Share Posted June 12, 2012 Thanks I knew it had to be something simple, never used those before. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/264052-need-some-help-with-a-mysql-errorhavent-see-this-before/#findComment-1353190 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.