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 (28530,44531,4765,44689,45262,9341,39676,18279,18172,18648,6782,37057,43800,45180,45346,44884,6862,17848,44640,28313,13,44856,44851,17771,18894,44739,13988,44858,44870,45567,34194,44775,44837,44687,44873,17278,32454,24438,44669,44853,18688,18042,44762,44863,6609,17703,30963,17556,18430,45177,44848,19057,17904,37267,18719,17601,44869,14622,17981,30986,5993,44835,18237,16885,45229,10402,44671,44685,6875,18981)
Unknown column 'np.person' in 'where clause'