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 (44531,44848,17848,18794,18185,17771,5259,17756,44766,45277,44687,45229,37057,17335,24412,17755,44835,44884,44865,3883,44765,44878,5410,44863,43800,44836,44640,45043,17009,45051,17527,44868,31354,44762,18430,18996,3,10402,32454,45177,13922,45515,44845,18237,24441,18900,45517,18427,37267,17556,44854,28530,44837,17092,17657,45286,17904,44849,45567,44767,16885,18042,17703,18301,18279,44869,45072,45421,6782,17839)
Unknown column 'np.person' in 'where clause'