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 (44861,17904,5410,44849,44762,45346,18286,30963,45516,8753,18042,44764,18572,13425,28530,17703,45286,44835,39676,44745,44851,3,18301,14402,44766,17981,44845,45262,18719,36472,45421,45567,17756,17335,44685,6875,44739,18794,37267,44767,24411,18430,44671,17009,17237,44775,44674,17492,28313,17601,22509,44875,44869,18652,44854,6609,44711,18894,44689,44848,18996,45051,19078,45517,18981,43800,5259,18648,9341,45277)
Unknown column 'np.person' in 'where clause'