Select not working ;
<p>i have problem, i can't run select this when I using session in <code>WHERE p.post_by ==  '{$_SESSION['user_id']}</code>, although i can echo session['user_id'] in screen, if i using <code>WHERE p.post_by &lt;&gt; '{$_SESSION['user_id']}</code> then SELECT working, can you help me?  </p>

<pre><code>$sql="SELECT p.id,p.post_convert,p.post_id,p.post_title,p.post_by, p.post_time,p.post_view,p.post_catelogy,
p.post_content,p.post_summary,p.post_picture, c.menu_id,c.menu_title,u.id_user,u.username,u.info 
FROM post p, category c, user u 
WHERE p.post_by = '{$_SESSION['user_id']} ' &amp;&amp; p.post_catelogy = c.menu_id  
ORDER BY p.id DESC";
</code></pre>