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 (18572,17278,17527,44845,44849,19078,44775,8753,44853,13988,5993,44766,39676,17492,18185,44685,37057,44848,6609,44894,3,18446,18353,18652,44855,45346,17335,17755,44674,17009,44884,45421,44745,17237,44868,16935,5388,45277,45229,45180,30963,18279,45518,45561,37267,44640,45072,18427,17771,3883,13922,18719,10402,18042,45043,44764,18237,24438,18650,17601,44768,44870,45517,18688,17839,44856,44765,44878,32454,4686)
Unknown column 'np.person' in 'where clause'