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 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. 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 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. 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
Archived
This topic is now archived and is closed to further replies.