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 (17601,44856,44745,44837,6609,44858,45177,44836,17492,44861,13988,17556,17114,44687,39676,45561,17351,5410,17771,5993,13,18042,18427,17839,45517,28313,9341,18185,44848,36472,18279,45051,8753,18353,18650,45567,17278,13425,6862,14622,5388,45277,44884,18719,28530,44640,45180,24441,6782,45262,22509,44855,24438,44863,44762,6875,44671,30963,17755,17237,16935,30135,44764,18172,17904,37267,4765,18688,44868,18794)
Unknown column 'np.person' in 'where clause'