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 (44768,5259,6609,17092,18652,44894,45277,18900,44863,44869,44671,3883,45229,44837,18286,45072,24441,44867,28530,28313,45043,18894,18446,18042,44767,17601,18353,44858,4765,45286,17756,37057,8753,14402,17492,37267,44861,44873,18996,44884,24411,44640,44875,44674,44685,44851,18427,18719,45177,45180,18237,18172,44866,45567,5388,17114,18279,44865,44855,4686,18572,44775,30963,44835,18430,17527,45262,44868,17657,18648)
Unknown column 'np.person' in 'where clause'