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 (18900,44745,18427,44685,16935,34194,44765,17351,44848,5259,44866,18172,45043,44867,18446,9341,8753,17335,45072,45515,44671,5410,18353,24412,17771,44762,16885,18794,6609,3883,44669,30986,18688,13,44868,24438,4686,44865,17981,45516,18981,17556,36472,17839,44764,45567,6862,44766,17092,39676,45346,18286,44894,44767,44768,45262,44856,44875,45517,44640,45277,44835,18042,14622,10402,45180,37267,44858,30135,44775)
Unknown column 'np.person' in 'where clause'