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 (17703,5259,44869,19078,6875,45518,24441,18650,18172,36472,44764,24411,44640,45517,43800,44671,18286,44837,18688,44894,44849,45262,17335,17848,18996,6862,45042,44762,18648,45043,44856,4765,16935,18719,45567,44689,22509,13922,45072,28313,32454,5410,37267,17492,30963,44767,17351,24438,45277,18794,44739,44878,13425,6782,44865,44863,8753,5388,13,44851,17237,44866,44687,18279,44836,14622,18301,44669,45346,44884)
Unknown column 'np.person' in 'where clause'