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 (3,3883,18172,30135,45277,44689,5993,17601,18237,44835,18996,44640,44687,24411,24412,18042,17527,17335,17556,17835,44764,31354,44878,16935,32454,44870,18301,17755,18900,17981,17237,45072,44685,44775,24438,18185,44849,4686,45346,45421,44856,45561,44767,17092,18353,34194,44861,19057,45516,44765,19078,44884,9341,6609,44837,10402,44766,22509,44674,17848,44848,45517,45515,45177,44865,5410,44762,45262,5259,44768)
Unknown column 'np.person' in 'where clause'