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 (6862,6782,17835,16885,45051,13,44745,44868,44867,17237,18894,18353,45516,24441,30963,17904,44764,44884,44869,18900,44765,44640,17114,44853,45567,44687,18446,45346,44685,45229,44848,17981,44775,44531,45072,44674,4686,16935,45421,45277,18427,24438,44768,31354,44863,44837,45180,18794,18279,6609,24411,19078,18996,45286,45518,44766,18042,44836,13922,44873,37267,18652,18172,19057,44866,17492,45262,44865,44849,13988)
Unknown column 'np.person' in 'where clause'