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 (44894,30986,5259,45567,45518,18353,18427,44868,17703,45346,44873,17009,13425,45180,4686,18185,17981,44878,4765,44765,44861,37267,10402,18981,18719,44854,44845,44762,44848,44685,13,44674,17351,24438,17278,6862,6875,45421,18286,45277,14622,30963,44869,24441,18794,44669,44858,17771,44711,45517,18042,24411,17527,6609,45262,17904,37057,19057,45043,44671,32454,44863,17601,44853,19078,17657,18996,18650,45072,13988)
Unknown column 'np.person' in 'where clause'