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 (18648,17335,44674,18430,18279,44762,44849,18042,18688,43800,17278,18446,17092,45229,13988,44868,28530,44851,30963,17237,44853,18900,45072,17848,18652,4686,44878,24412,44836,17492,45043,18286,17755,16885,17981,44855,44837,44640,17771,44865,44765,3,3883,6875,17839,18301,17657,44854,4765,44858,32454,8753,45567,44873,31354,37267,22509,18185,45177,9341,44766,44848,44689,6609,24438,45517,44870,45516,17556,39676)
Unknown column 'np.person' in 'where clause'