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 (4765,24411,13922,44687,18794,24441,6862,18237,4686,45561,44853,44869,45286,17756,44685,32454,44764,44762,18427,17114,3,10402,13988,44745,18042,18286,44739,17009,44866,31354,44765,44867,8753,18301,45515,44851,17237,44863,44865,17755,44845,30986,17492,18900,17335,17278,34194,17527,18652,44711,13425,45042,18185,17351,44848,45229,18648,17771,45421,44835,44767,44875,16885,18572,30135,17601,44870,5410,9341,18981)
Unknown column 'np.person' in 'where clause'