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 (44854,18427,44762,28530,44674,18648,31354,19057,18042,37057,44835,19078,44851,17703,44878,44861,14622,5259,17527,4765,17835,24411,44870,10402,44775,39676,44765,45286,5388,44687,13425,3,18301,44837,17981,44764,17771,44767,13,16935,18719,16885,18894,44845,30963,44836,45262,44640,9341,18286,45177,17904,18794,24441,44685,45042,44849,17556,17492,44873,22509,45516,44868,18652,28313,32454,43800,44869,13988,44689)
Unknown column 'np.person' in 'where clause'