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 (5993,6782,18427,13922,18286,32454,17527,30963,18900,22509,14402,44865,18719,45051,45229,44869,18652,18688,45421,17981,45515,44531,24441,44674,44689,17839,18996,43800,45042,45072,16885,19078,17835,44863,17556,44873,17755,44711,45180,45567,5410,4765,13988,5259,18446,8753,44669,44837,18894,18185,44836,18981,13,44687,44868,44768,5388,17703,44866,45177,17904,6862,17848,44858,44855,44765,18430,10402,16935,44764)
Unknown column 'np.person' in 'where clause'