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 (37057,18185,44745,17755,45421,13,37267,9341,44848,44866,44878,45515,18042,13988,44863,17009,44849,10402,18648,18172,18237,45177,6609,18794,45286,18900,45567,39676,44775,14622,45072,16935,18688,44640,44836,34194,17237,18446,4765,44669,44687,44765,44768,45517,17756,17771,17601,44739,44868,17657,24412,44764,24441,45561,22509,18996,18652,17527,45262,45518,18427,18353,44845,44689,4686,17335,44851,32454,44762,44767)
Unknown column 'np.person' in 'where clause'