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 (17278,19078,34194,17335,18353,31354,44674,44766,36472,45043,18427,44854,18894,18900,44869,18650,3,44856,44762,44837,17756,45421,17703,44640,18719,44878,17492,44531,28530,13922,18688,5410,32454,13,17848,44865,44875,28313,45346,4686,17527,37267,44848,30135,37057,44868,44884,45517,19057,44853,18237,44894,44764,18185,16935,43800,44866,17755,44765,44855,45561,18794,44685,44669,45286,44870,44671,44873,17835,4765)
Unknown column 'np.person' in 'where clause'