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 (44855,28313,16885,44836,44531,17092,5410,44884,44873,8753,17904,18172,30986,10402,44640,4765,17009,44762,44671,6862,44767,44768,3883,30135,5388,44669,31354,44685,18652,44745,45518,14402,44854,45561,45051,44851,17527,18719,45177,18237,17756,44775,44837,44766,44868,45346,17492,17278,18446,13,17237,36472,13425,18301,5993,4686,6875,17839,19078,45421,37267,44853,45229,16935,17657,37057,24441,44689,39676,44894)
Unknown column 'np.person' in 'where clause'