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 (18650,18900,17351,44836,30986,44853,44767,18185,45177,31354,18996,18286,44762,18652,45042,45516,17278,45561,44858,44873,44837,18688,44739,45515,18353,44845,16935,45567,44671,44884,32454,24412,13922,17756,9341,18446,45286,6609,44640,6782,36472,24411,45051,44869,17771,17492,22509,17237,8753,44878,44865,44775,44861,44764,44870,13988,17335,44856,17556,45043,44868,18794,18430,44766,5410,44866,19078,17114,30135,5388)
Unknown column 'np.person' in 'where clause'