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 (45043,17351,44870,44674,13425,18430,44765,13,6782,17755,45515,6609,44835,10402,19078,44868,44745,3883,17981,45072,18427,18652,9341,44767,5993,3,44858,44685,37057,44854,44845,18648,44856,44849,44863,45567,45042,44836,24411,17527,44531,32454,44687,44739,18353,18688,17904,17601,14622,44768,17848,44884,17556,17009,18446,45421,44762,44878,44640,4765,44689,30135,43800,4686,30986,44764,44853,44869,17335,44865)
Unknown column 'np.person' in 'where clause'