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 (44836,44671,18900,36472,34194,3,17335,44640,18794,32454,45229,44851,18981,18719,45277,44845,30986,17835,6782,45072,5388,44764,17527,6875,44762,17839,18237,5993,44768,17771,45561,24438,18894,45516,44711,44685,44848,44765,18648,4686,18652,18446,19078,44858,39676,28530,18042,44689,6609,43800,30135,22509,9341,24441,45180,17556,14622,18286,18427,18185,13,19057,17492,17237,44875,10402,13988,24412,13425,18353)
Unknown column 'np.person' in 'where clause'