<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#FFFFFF"><div>Have you tested the subquery in php?<br></div></div></blockquote>
<div><br></div><div>I have and that's where it wasn't working. </div><div>However I have now found the reason and it was because I'm a total idiot. Next time i'll double check i'm look at the right database D'oh</div>
</div>