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 (18894,44766,17703,44671,45518,17848,18286,44861,18427,44894,36472,44869,44837,44878,44669,17092,45229,44745,44685,5388,17657,10402,44865,6862,17278,44868,45043,44739,19057,44854,17756,18900,17335,18446,17601,30963,28530,17556,3883,30986,4686,45517,14402,17527,22509,45421,44851,13922,17009,4765,18237,18172,45516,18652,14622,17492,44884,45346,8753,30135,19078,44853,18688,16885,45072,18648,18353,32454,31354,44764)
Unknown column 'np.person' in 'where clause'