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 (18996,24441,13922,17009,44837,44845,3883,45229,5388,18172,13,44762,6609,17492,45262,18650,18427,18301,17237,44873,13425,44865,45561,34194,19078,44870,44856,28530,44866,24412,44640,17092,14622,45515,32454,44867,18430,24438,3,44884,17756,44766,44775,14402,6862,17755,30963,19057,44858,6875,44855,45518,44768,44851,18648,18719,18353,18279,18981,44854,44739,8753,17981,45177,45346,44878,44861,13988,5259,44848)
Unknown column 'np.person' in 'where clause'