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 (45421,28530,31354,44836,24412,24411,18353,44837,45515,17839,30135,44765,24438,17835,44863,44884,8753,44835,17237,44685,44856,44894,14622,44873,44766,44866,17657,34194,32454,13922,45561,44861,19057,18185,44867,17601,17904,44768,17703,9341,17755,24441,44640,44869,18981,10402,17527,44848,39676,44689,45518,18650,19078,3883,44669,18446,44851,17771,45567,18301,17981,18794,44745,6609,44849,18648,28313,18996,45043,17492)
Unknown column 'np.person' in 'where clause'