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 (45180,17601,44837,9341,18572,17556,44764,44711,17351,5259,18446,18981,45516,45515,28313,44863,44858,18286,45177,44766,44671,17657,13425,17527,5388,18185,24441,39676,45042,45567,44765,17835,44861,17755,18996,37267,44640,44767,32454,24438,45421,44531,44854,18237,17703,18650,3883,44845,24411,18042,44775,44685,44849,37057,44873,4686,6609,18427,45043,14402,18353,17756,44875,43800,19078,8753,44689,44867,5993,31354)
Unknown column 'np.person' in 'where clause'