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 (6609,32454,18894,5993,18648,18353,18900,44855,44640,17981,18446,44858,44762,22509,17556,44866,45518,17351,18301,17848,39676,43800,44768,44878,18794,18996,18237,44865,45229,18172,44689,17278,3883,16935,45516,45515,5410,17114,45346,17335,4686,37267,17492,44671,44767,18688,44875,28313,45421,44873,17904,5259,44894,17092,17755,3,9341,17237,45043,44851,30135,44687,45262,44853,44775,45286,45177,44685,6875,45517)
Unknown column 'np.person' in 'where clause'