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 (18353,8753,45286,44767,44878,44856,44865,44764,17601,44863,13425,44845,45262,13,17092,24411,44875,10402,44861,5993,17657,44884,44762,44870,18996,17755,18719,24412,44851,44687,44836,4686,28313,44873,44869,17556,45346,44848,6875,4765,5259,17771,14622,16935,18301,17904,28530,24438,45229,44849,31354,45516,14402,45177,36472,18688,44837,13922,5410,18185,18652,18430,19078,6862,9341,44745,17848,3,18648,45180)
Unknown column 'np.person' in 'where clause'