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 (17335,45518,28313,18301,17771,22509,17848,44671,44739,17904,44868,36472,44745,13922,37267,5410,45346,39676,18446,45262,18719,45042,31354,18900,44870,30135,44866,30986,44894,44689,18572,44856,44878,17835,18794,17601,17351,45072,24411,45180,45277,44768,18042,4765,8753,44767,18279,44531,6875,18894,18237,44669,18652,18648,34194,5388,14622,17527,17492,17009,16885,44849,45517,44863,44873,45177,17755,18353,44766,43800)
Unknown column 'np.person' in 'where clause'