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 (14622,44687,18572,17657,18430,44768,45517,45177,6782,24441,3,17601,44858,28530,45262,10402,13,44868,44849,18427,45346,44853,45516,45286,45518,37057,44884,30986,32454,44854,5259,44835,18446,24411,18894,18185,45051,44869,44875,45180,18172,17839,30135,28313,18301,17114,44837,31354,16885,17351,44866,18981,6862,13988,44878,17237,5388,13922,17556,43800,18353,44867,44762,19057,22509,5993,4686,44711,44671,44765)
Unknown column 'np.person' in 'where clause'