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 (44851,4765,17556,44884,44768,30135,18894,18237,45346,18185,44894,16935,44836,44849,32454,44835,18042,44685,44739,17114,34194,18996,9341,17835,44775,5410,45180,44875,17755,44866,18652,17351,44869,44531,45517,44867,30963,44854,6875,17009,24411,37057,18301,45177,44837,17657,37267,30986,18648,44861,17771,18981,45567,45043,22509,17492,45229,17756,45042,44878,18427,44848,13988,44640,44762,17981,17237,45516,45286,19078)
Unknown column 'np.person' in 'where clause'