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 (18719,45072,17756,17556,5388,37267,44767,6782,16885,45262,24411,17601,45042,44671,18430,18279,44854,6862,28530,18981,18427,17114,6875,4686,44775,13922,45421,14402,44869,45229,18172,45180,17755,9341,17904,17527,44884,30135,44849,8753,18353,19078,17848,17839,44764,44845,16935,45051,44768,44739,18794,44863,44848,5259,44861,44689,17492,44685,17657,18237,13988,14622,44851,17278,18301,18652,45517,45177,17771,18042)
Unknown column 'np.person' in 'where clause'