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 (24441,44867,44845,24411,45561,44863,14622,17492,44689,17848,8753,44766,17755,17527,22509,44849,9341,44851,44869,18688,44745,44531,18719,17835,4686,45567,31354,6875,19078,30986,44685,45516,36472,18042,45262,17556,13922,18185,39676,10402,45229,18996,3,45180,45043,44762,6862,30135,34194,4765,18301,44836,17771,44669,45072,44640,44873,18172,18353,45286,18286,24438,17703,17904,17335,5410,28313,44687,44835,18572)
Unknown column 'np.person' in 'where clause'