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 (19078,18981,44849,45518,5388,4765,39676,45262,44894,24441,44878,44856,17771,44853,44762,18894,45051,16885,17703,45421,17839,44767,44764,18719,45515,22509,44745,45286,17848,44845,13988,17335,18430,45180,30963,18650,44766,37057,45517,45177,44775,18279,4686,44671,44768,18794,17009,44685,17904,17601,18427,17237,18996,13,18900,43800,44640,17351,44854,31354,24438,36472,44863,44687,18042,8753,44861,44848,10402,32454)
Unknown column 'np.person' in 'where clause'