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 (45177,44848,6782,17278,43800,17771,44835,17981,5410,44849,24412,44765,17904,17092,17848,18572,18427,17839,18042,17114,45051,14622,44868,44861,6609,44767,44873,44884,44837,44866,44745,17335,44687,44836,30135,44775,5259,19078,5993,18286,18301,18648,18430,17009,17556,45277,44674,44878,6875,45561,44851,45421,45180,18894,4765,17657,28530,18688,13,6862,5388,45515,44854,24441,10402,44863,45042,8753,45072,17755)
Unknown column 'np.person' in 'where clause'