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 (44848,44858,18900,44867,18301,17527,37267,18719,45072,30963,18279,13425,18237,18430,17703,17092,18894,17237,18286,3883,9341,17114,45518,18427,17009,18353,24441,18572,18981,45286,44765,44865,6782,18185,18996,45516,17492,14622,44878,3,44689,18650,45517,6875,5388,44894,5259,45042,28313,18648,44870,18042,44764,44835,30135,37057,45277,44875,17771,17981,44866,45229,44531,17556,18446,17835,18172,45180,44869,36472)
Unknown column 'np.person' in 'where clause'