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 (5388,18572,37057,18996,44837,18185,18446,13988,44765,17904,44867,10402,44870,16935,39676,44674,5259,44873,18237,17351,19057,45286,45561,44878,44856,13,44689,45346,44764,45262,3,44863,45421,30963,30986,45229,28313,45177,45180,17657,30135,44869,44858,8753,44531,44835,17771,24441,17237,44868,44739,9341,31354,44861,18652,44849,44866,6782,44687,32454,28530,24412,19078,34194,17527,17835,44894,13922,16885,43800)
Unknown column 'np.person' in 'where clause'