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 (5259,30963,3,5993,44764,16885,44863,18286,43800,44767,18652,44835,18237,45346,18172,44669,17009,17839,44870,10402,17278,44531,18648,44868,31354,44640,17703,9341,6875,19078,44848,44873,18996,18042,44836,39676,44837,17981,44674,45262,44865,5388,44884,44866,44875,37057,13425,17335,17492,44861,17848,17756,17835,44854,17114,18900,44689,45180,44775,17237,45286,34194,44685,45518,44745,45277,18279,44687,45043,44851)
Unknown column 'np.person' in 'where clause'