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,45515,3883,13,30135,45043,44853,18900,44849,44687,44865,44766,17492,17114,13922,18572,13425,22509,44835,44845,45229,44884,45561,6862,6875,17771,24438,5993,17657,44873,17556,44861,45262,28530,45286,32454,17335,17904,18301,30986,44768,19078,44856,17848,45072,18894,6609,18172,44745,45277,16935,44671,18648,10402,17527,24412,31354,14622,45042,45421,18353,44531,9341,18279,44767,44855,17351,18719,45346,44867)
Unknown column 'np.person' in 'where clause'