$ 0 0 Both lines marked above can not co-exist.Either make the 1st one as INNER JOIN or the remove the 2nd one. -Jogeswara Rao K