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 (44674,30135,30986,18042,17527,44884,44669,44685,18894,18900,44765,44875,36472,8753,18996,18185,45262,14622,18237,44745,44858,44855,18981,18650,45567,44878,45180,44531,44863,17114,17981,17009,45277,44848,34194,24412,17335,14402,39676,13,9341,17703,44836,5388,44687,6609,44762,45516,18430,17237,18572,44853,17278,18648,18688,17755,10402,45177,28530,44689,13988,44873,18446,17771,44867,45043,6875,5993,44865,24441)
Unknown column 'np.person' in 'where clause'