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 (18427,17657,17755,44863,30963,18650,45072,45277,13988,24438,44762,44884,44837,39676,17114,44739,17848,44765,18719,4765,30135,44855,44836,24411,18572,5259,6862,45229,45561,44766,44711,45051,18900,37267,17756,8753,18286,18430,16885,16935,18237,14402,18894,17981,44767,6875,5410,18172,17904,44894,18446,19078,44768,45516,44671,44848,4686,17835,18185,17703,13425,17771,19057,6609,45421,18353,44849,17092,44689,44764)
Unknown column 'np.person' in 'where clause'