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 (44765,44640,44863,32454,17904,30986,18172,44767,17492,44775,45421,24411,19057,18353,18572,45277,44845,18650,18446,17755,18279,30963,44861,44873,17601,37057,44689,37267,6609,34194,13425,44762,17848,45517,18237,4765,4686,44878,17335,44854,44875,44848,18688,44531,45177,45516,22509,18301,44835,44868,43800,44856,45043,44671,44867,45051,45072,18894,14622,9341,17835,44739,18430,28530,45515,44836,45286,10402,8753,44855)
Unknown column 'np.person' in 'where clause'