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 (32454,17556,18652,36472,5259,44861,44767,44739,17703,31354,45043,18894,17835,5993,3,44531,44848,44863,14622,18650,45262,18719,45051,28530,44640,44884,45421,45229,17771,43800,17904,18996,44689,5388,4686,6782,5410,19078,17755,17009,44766,44762,6875,18427,44768,18688,18042,44764,30986,44687,30963,44851,45072,18353,44674,17601,17527,16885,17237,30135,45518,13425,44854,18446,24438,9341,17351,45567,14402,17335)
Unknown column 'np.person' in 'where clause'