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 (45229,44674,17848,17492,44687,3883,18572,44768,24411,18996,44878,45262,30986,44865,6609,13425,44848,45277,45518,4765,45421,8753,44870,18894,18650,18981,44685,6782,18172,45567,13,44869,44775,10402,6875,18353,18652,44640,18279,44767,37057,45346,30135,17835,28530,19078,18446,32454,17114,44766,17755,18185,44894,44866,17335,3,17657,18648,45286,44835,13988,28313,44875,44855,17839,45043,5388,45042,45180,17904)
Unknown column 'np.person' in 'where clause'