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 (37057,30963,14402,45072,18572,45177,6609,18446,6875,31354,44856,44762,45515,44837,30135,18279,10402,44855,17556,18652,45042,44766,17601,44764,44767,17981,45567,5388,45346,43800,13988,28313,8753,44863,44685,13922,17114,17703,18427,6782,45277,17904,17335,44671,13425,18430,44674,18650,45517,9341,39676,45180,13,28530,24441,17492,44848,18286,17839,44835,18688,45043,44739,18900,18353,44870,44836,45286,6862,44689)
Unknown column 'np.person' in 'where clause'