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 (17351,14622,18042,45043,6609,44868,18427,17092,18894,4765,17278,45277,17009,30986,18430,44674,18301,44875,18279,17335,44849,45286,5410,45229,36472,17703,44865,44848,18353,45262,8753,44685,13922,44861,18650,45421,24412,18648,28530,44866,24438,18286,9341,44836,32454,18794,18719,5259,44858,17527,16885,5993,18688,44531,44853,5388,44845,44671,45516,44739,17771,44669,45051,13,44766,45042,17755,17835,28313,44711)
Unknown column 'np.person' in 'where clause'