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,44863,32454,30963,44711,44765,44869,8753,45072,45043,18650,44878,45517,18981,44685,22509,44669,31354,44894,18237,34194,18900,30135,16935,45515,44767,44766,45421,6875,44851,44845,17556,17092,18427,17981,44739,44775,44873,24441,44531,18042,44745,18996,28313,44848,45180,44884,5259,44868,17335,17278,18286,5993,13,9341,13922,3,44855,45177,5410,17237,44866,44854,5388,13425,18794,3883,45346,45518,44837)
Unknown column 'np.person' in 'where clause'