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 (44739,45517,5993,24441,19078,18688,45518,13988,45177,17278,44640,44875,18996,18237,17335,17756,44689,28530,44768,17848,44685,30135,3,17351,45072,45421,8753,44851,5388,18794,18648,18301,44764,43800,24412,45042,10402,18279,45286,45262,6875,45051,24411,44849,17835,44745,18185,17771,13,6609,44854,17657,37057,44855,45516,6782,6862,32454,4765,45229,18446,44856,5410,18430,17981,44767,44835,44531,14402,45180)
Unknown column 'np.person' in 'where clause'