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,44775,4765,17527,30986,45515,13988,24441,18996,18279,17657,45043,30135,13922,44669,44856,43800,5993,18430,45421,44768,17755,24438,39676,17601,44868,45177,16935,5388,24412,13,28530,45229,18237,44861,19078,44863,6862,22509,37267,18286,17848,44836,14402,44711,44845,17835,32454,18042,44685,44767,44853,44884,44640,17904,45277,44849,17771,45518,24411,17756,44837,18301,44835,44875,44869,37057,18353,44745,44671)
Unknown column 'np.person' in 'where clause'