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 (44685,13988,45567,17657,18996,18427,17771,6609,18353,44775,44640,13922,16935,45043,4765,6875,17556,44894,30986,44884,45421,44866,34194,17278,18900,44870,8753,44837,14402,44765,18688,17492,45262,39676,44858,19078,36472,44861,5388,44855,44875,37057,24438,16885,24441,45042,14622,44836,6782,45072,17981,44878,45177,17237,18446,44845,28530,44764,45518,44768,18648,18652,44868,18301,45286,17703,44865,24412,45346,17839)
Unknown column 'np.person' in 'where clause'