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 (17904,18279,17601,10402,17114,18446,4686,44837,30135,45421,16935,8753,17848,16885,18894,18794,45042,17092,44739,13922,18981,45561,18427,17278,9341,44849,6875,44894,17839,17351,44878,17703,44867,44858,44855,44873,44685,18172,13988,5993,44861,30986,18648,13,18688,18185,44863,34194,44531,5388,3,45518,18996,45262,4765,44870,44767,44711,44640,44848,18650,44845,45346,5259,17981,44766,30963,45180,44836,44687)
Unknown column 'np.person' in 'where clause'