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 (18900,17657,16935,45567,18353,44884,44837,44863,19078,5410,44685,44669,44767,17703,5993,24411,17848,45051,44766,4686,44853,44765,18237,18996,30986,17278,44848,44836,4765,6862,44764,18572,3883,44745,44845,18427,17335,19057,44873,44865,45421,44867,44858,44531,16885,18652,44674,18286,44851,17839,45229,17904,18446,28530,8753,37057,17114,45072,17556,45180,14622,18279,44768,45277,24412,17527,45177,44856,44687,17755)
Unknown column 'np.person' in 'where clause'