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 (17755,44868,44640,24441,17703,18981,4686,17335,44861,17527,4765,32454,13988,44855,44764,13,18279,31354,16935,6875,45518,44836,44531,44875,44848,44745,44711,44858,18446,45346,18996,44685,45229,45516,14402,44878,44762,18652,8753,44870,18572,45042,44835,17278,22509,17092,17839,24438,18719,6609,18900,44768,44849,44767,44687,24412,17601,44894,44856,18648,18894,30963,45177,30135,14622,34194,45286,17492,44845,45262)
Unknown column 'np.person' in 'where clause'