Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18279,44687,18652,44853,44884,39676,44855,44870,18237,17657,45516,44739,44745,28530,44848,45177,8753,43800,18900,13988,45277,17527,17092,18353,13425,30963,5388,44711,17492,45072,28313,18572,17237,17556,24441,44854,44837,17351,44766,18719,18430,44674,5259,45262,3,14402,18286,44640,18042,44849,24438,17771,44836,45180,45043,17848,44856,13,17335,19057,44767,18894,44835,44863,44894,17835,14622,44762,44765,18996)
Unknown column 'np.person' in 'where clause'