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 (30135,45051,17601,44867,13988,3,44669,34194,28530,13922,9341,44689,17703,24438,44848,17756,18301,18996,30986,17237,44671,44865,44531,44685,45515,3883,18648,17114,45346,14402,45286,44853,45567,13,43800,18719,44878,4765,4686,44858,6862,44739,36472,45177,18894,44845,30963,5993,44687,14622,17335,18900,17092,16935,17771,17657,17904,28313,45516,45421,10402,17527,37057,44836,44884,18652,17981,44767,5410,18237)
Unknown column 'np.person' in 'where clause'