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 (44837,44884,44866,18172,44762,24438,18279,34194,18353,44775,44851,44764,17835,44836,44865,18301,44856,45051,31354,18286,18427,44765,24411,6609,18719,44870,18572,39676,17601,16935,18430,44878,45043,44894,44640,44873,44848,9341,17527,14402,45177,17237,44867,17335,44853,17351,17756,6782,17114,44671,44674,45567,30963,19078,44739,44835,44863,43800,3,45286,4686,18688,18996,3883,44711,28530,44768,36472,17009,45180)
Unknown column 'np.person' in 'where clause'