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 (18688,17755,9341,6875,44745,16935,30135,17114,44884,44766,18652,44739,44685,45515,17981,17657,44845,14622,30963,44767,44866,44894,44689,45346,45517,17335,18042,44762,17492,18430,24441,3,17556,18996,18648,6862,16885,4686,45177,44687,43800,44855,44851,44836,45561,18719,30986,44858,32454,45567,18301,17009,44863,13425,17527,44869,13,45051,18794,45072,18353,36472,22509,45262,17835,37267,19078,5993,44837,17092)
Unknown column 'np.person' in 'where clause'