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 (18981,18185,18237,18688,6609,30963,45051,44765,44870,44869,36472,4686,45421,18286,44867,44767,43800,13,44854,6875,44836,4765,44848,17601,45262,39676,37057,18719,44674,3883,44835,30135,18652,17835,17492,44894,44689,5388,45180,45042,32454,18900,17703,17527,44856,44845,13922,17278,44640,18446,17904,44853,18042,44873,44685,17839,44849,44865,44878,24438,45518,45177,17755,16935,6862,13988,14402,10402,28313,44858)
Unknown column 'np.person' in 'where clause'