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 (17755,44853,18353,44870,45518,17092,18185,44866,4765,18719,44835,31354,30135,44685,39676,18430,5410,18286,17703,18427,24441,18172,13425,17351,18652,30986,18794,44851,44836,18688,45051,44884,45561,17237,28530,5388,14622,13922,24411,44689,44861,18301,37267,9341,44863,3883,45286,18894,45072,22509,17657,44745,17771,18446,17335,4686,43800,24438,17601,45042,6782,45517,44768,17114,45229,32454,44858,44775,44674,18996)
Unknown column 'np.person' in 'where clause'