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 (44685,45421,44640,24438,17335,44863,18353,18719,44878,18185,44836,45262,28313,5259,44870,4686,44848,30135,44868,16885,5410,44854,8753,18652,44669,45567,17556,22509,45042,19078,14622,36472,17237,44866,18237,18172,44671,44775,45286,18301,24411,17839,18894,17092,16935,13988,44764,44865,4765,32454,18446,18648,17755,10402,44873,18042,17657,44835,6875,45229,34194,9341,17835,44875,17771,44531,43800,6862,31354,6609)
Unknown column 'np.person' in 'where clause'