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 (45567,44531,44669,45177,18172,43800,45072,36472,6609,19078,45286,5410,18427,24411,28313,13922,8753,17755,18719,44687,44867,45518,44884,14402,28530,17009,45180,18648,17601,13425,17556,44861,18446,44640,44854,18894,44764,18301,18042,5259,18650,17092,24441,9341,44855,44851,14622,44856,18652,45229,19057,44775,31354,4765,44869,44878,32454,17335,45421,44674,44866,10402,18286,39676,24412,17114,44768,6782,45561,44870)
Unknown column 'np.person' in 'where clause'