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 (13988,18446,34194,13,44861,17771,17703,37057,14622,45262,17755,17335,44855,18042,18237,44867,44870,44775,45072,18172,17848,16935,44685,44687,44875,44745,44835,16885,17756,8753,24438,45180,44894,44711,14402,17237,45286,44845,44766,18688,17009,13425,17351,17839,44853,45277,4765,10402,44765,45517,17904,17492,30986,44851,18652,44671,6609,18900,44531,18794,45042,18427,44854,9341,17981,30963,17278,28313,30135,39676)
Unknown column 'np.person' in 'where clause'