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 (18719,18172,44855,5410,14402,22509,44762,18301,44836,44674,36472,44764,18286,13425,18650,44863,17009,4765,17351,45042,44766,44531,45072,17237,44868,44866,44865,44861,44837,45229,18430,17771,44854,17755,44849,45180,45262,3,3883,13988,8753,17492,44873,28530,13,17835,17839,17848,18900,44711,45515,18648,44867,18446,32454,18894,44856,45561,6862,45043,45177,18652,17335,5259,18981,44853,44671,13922,45518,18185)
Unknown column 'np.person' in 'where clause'