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 (13425,44854,44865,34194,17556,37267,45177,44531,4686,44848,17904,18900,44745,44853,17114,44870,13,45262,45516,45043,28313,44669,44739,44689,17237,45229,44858,18794,44687,45180,18648,18279,17835,9341,14622,44866,44875,18430,45277,17755,44861,17771,17527,30963,18286,30986,18301,3883,18719,44863,18446,44762,18353,17601,32454,44768,45567,17335,30135,45072,45421,5259,17981,18172,17092,3,28530,44868,4765,36472)
Unknown column 'np.person' in 'where clause'