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 (18042,9341,45346,3883,44739,17527,18652,5410,44835,19057,44745,18900,44764,17657,44768,44775,17492,44848,32454,3,30963,45180,18185,44867,44884,17278,13988,44878,17703,5388,45516,36472,18688,24438,10402,18279,24412,44674,45043,18172,17981,14622,45051,44767,4686,17835,44766,22509,18648,39676,44866,30986,4765,44836,17556,45421,45072,18301,44858,44849,17009,18446,37267,18353,44685,45177,13425,18981,13922,18719)
Unknown column 'np.person' in 'where clause'