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 (19057,17904,45286,44861,44856,45561,17755,18688,44848,5259,13922,45515,28313,6782,18430,24438,18353,44765,43800,45516,45042,6609,44865,17657,18301,44875,4686,44845,44689,17703,45072,44837,18427,45277,14622,18894,16885,6862,44866,44863,44762,44531,18237,45518,39676,18981,18286,45517,17771,44858,24411,8753,45567,10402,44849,17092,45051,17278,45043,17351,45177,5993,44685,18996,30135,18794,18648,44868,44640,18042)
Unknown column 'np.person' in 'where clause'