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 (44845,45517,17335,44894,6609,44855,44531,44868,24438,44745,17755,4686,17351,16885,19078,18042,44869,44865,18353,18996,13425,17835,17237,6875,17009,45421,44873,17556,45180,18446,44711,44858,9341,18650,5388,24411,45177,18286,44866,13922,28313,45515,44835,18900,44867,44775,30135,44674,18981,45561,44837,45043,5993,28530,37267,17527,44856,13988,18794,24441,19057,6782,45346,18894,18427,24412,44854,44764,44861,44853)
Unknown column 'np.person' in 'where clause'