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 (44775,24438,45516,44867,44875,17835,14402,19078,24441,5259,45517,44835,17904,44868,28313,45229,45177,18719,3,6862,44640,31354,45277,14622,5410,17492,17771,36472,24411,44669,16885,18427,13425,18279,17237,44849,44689,44856,18650,45286,18237,45421,6875,13,44854,18172,22509,44866,43800,18981,45561,17009,44869,18652,44766,45346,17756,17092,44894,17114,45262,44878,13922,24412,44851,13988,44863,18996,18446,44685)
Unknown column 'np.person' in 'where clause'