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 (8753,17351,44854,18353,17756,45042,34194,13425,17009,18286,44856,18042,44866,16935,17981,18430,44835,9341,17278,44884,19078,45515,45561,18427,44765,44836,24441,36472,18572,44669,24412,32454,45229,6782,10402,45072,6609,44873,44674,18648,4765,44875,44863,17335,18688,37267,44867,17848,3883,5388,45177,18650,44858,44868,28313,44861,16885,44865,44894,37057,44849,30963,18900,45421,44685,19057,17703,39676,44837,24438)
Unknown column 'np.person' in 'where clause'