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 (18172,17904,18996,18286,4686,45286,45346,44858,18301,18446,18894,44875,30135,45072,44865,18279,44762,45042,44894,45561,18042,5993,45180,17351,44767,17771,17657,6609,22509,44640,45421,8753,30963,44851,45277,17756,18353,14622,17527,18719,45262,44669,18427,44768,45518,45177,43800,18900,44873,44687,44764,17703,44845,17335,18652,44848,44836,24411,13988,3,17114,44868,17755,39676,18237,44531,44856,44711,5259,6782)
Unknown column 'np.person' in 'where clause'