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 (24412,44674,44878,44775,17657,16935,44849,18172,45277,34194,22509,37057,44894,17835,39676,45561,44640,17904,18652,44866,18688,8753,6609,18719,45516,44851,10402,5993,18427,14622,18900,44867,45051,44848,44836,43800,18301,36472,45043,44858,18650,45177,17114,32454,24438,18572,24411,44687,44765,17848,45567,4686,44767,45072,13425,17981,17771,18237,17009,44739,28530,44766,45262,18286,44671,18794,18996,17335,44762,5259)
Unknown column 'np.person' in 'where clause'