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 (5410,45043,45177,13425,18446,19078,6862,4765,18652,45180,44845,37267,44875,45516,45421,18650,44869,18042,18900,45517,45515,44640,18301,34194,17009,28313,17981,44873,44775,44884,24438,5259,5993,17904,17114,18286,9341,44894,44863,45262,17601,44835,44861,28530,17492,44849,14402,17237,6782,18996,44856,44868,18794,44745,14622,44848,45072,5388,17278,13,45518,45042,17771,45051,44674,44865,30963,18719,17657,18572)
Unknown column 'np.person' in 'where clause'