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 (44858,30135,34194,45043,32454,6875,18172,30963,17839,45277,44669,44768,44854,13922,44836,44835,44848,5410,44762,17351,45515,45286,18794,19078,44775,44851,4765,37267,17556,45421,6862,44873,6782,44764,44687,44856,44689,17335,44837,44878,44685,44853,44767,44745,4686,28530,3,17657,24412,24411,17771,17237,17009,36472,18719,45072,18652,37057,6609,17527,14622,44855,44849,44674,18446,44640,5259,44863,17278,45180)
Unknown column 'np.person' in 'where clause'