Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND 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'