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 (44884,5388,45262,45229,18650,18427,14622,6609,44878,13,44894,17556,45517,16935,13988,44867,18353,24412,18430,44856,45051,45180,45277,45515,19078,24411,44764,44873,17237,44765,45567,44836,9341,18894,44861,44865,39676,3,44869,18185,18572,17981,44775,44875,44854,17009,13922,44866,44855,17335,17755,44767,18172,44674,18719,44849,44687,44766,44853,10402,18301,44689,18648,45072,17601,44837,45177,22509,44768,30135)
Unknown column 'np.person' in 'where clause'