I know that isn&#39;t strictly Linux but here we go;<div><br></div><div>I have the following mysql query:</div><div><br></div><div>SELECT * FROM usr WHERE <a href="http://usr.id">usr.id</a> NOT IN (SELECT DISTINCT member FROM mahara.group_member WHERE mahara.group_member.group=&#39;10&#39;)</div>
<div><br></div><div>This selects all users in the usr table that don&#39;t have entry for group 10 in the group_member table</div><div><br></div><div>The query works as expected when run in mysql workbench</div><div><br></div>
<div>However when I run it in a php script it only run the first part, so does a select * from usr</div><div><br></div><div>Has anyone come across this before and have any idea of a fix?</div><div><br></div><div>Dan</div>
<div> </div>