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 (3883,44868,45277,17755,44866,13425,17771,18042,30135,44875,44855,5259,28313,45051,18794,18430,17335,45561,13922,6609,3,44865,44863,44674,17703,37057,13,22509,4686,18172,14402,45567,18286,18648,45421,44867,45518,37267,44853,18427,44711,44767,44884,45229,18894,44687,39676,6875,19078,17351,44689,44768,19057,17848,17237,44764,31354,34194,44775,10402,17904,45286,17114,44878,44531,18279,24438,13988,45180,45346)
Unknown column 'np.person' in 'where clause'