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 (32454,18185,37267,17335,44861,44866,14622,5410,18353,44739,45286,44869,44768,44531,44762,17771,34194,36472,45561,39676,18900,44858,44868,5388,17351,18981,18719,44854,13,17703,45346,18042,45277,44669,18650,44863,17278,44856,44878,19078,3883,17848,18172,17237,18286,44689,44837,45043,22509,45177,44835,44767,17556,44674,17492,44865,6875,45262,17009,31354,18648,44685,6782,24412,44848,17657,44884,13425,17092,44765)
Unknown column 'np.person' in 'where clause'