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,45561,44861,19078,45277,10402,44765,18719,17755,34194,44856,13988,18042,44768,18650,17492,18894,44894,17657,45515,44863,16885,44837,18688,44873,45516,17756,17335,5410,18900,30986,18430,16935,39676,18301,44867,44878,17114,17351,45518,24411,37057,44845,45051,4686,44531,17703,14622,44687,45421,28530,44835,44767,13,44669,6782,45567,44851,17278,6862,44685,44764,18648,18237,3,44739,28313,30963,44868,45286)
Unknown column 'np.person' in 'where clause'