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 (44739,44669,44849,45042,18279,19057,18652,45043,17556,44848,44767,17657,45561,44856,24438,17601,13922,4686,17009,18894,17335,44835,6782,17527,18981,4765,44878,18572,6862,45177,17278,45421,44531,13988,44884,44837,44855,5388,18996,31354,44861,18648,44867,14622,45567,37057,45072,3,24411,24441,18172,17755,17771,44865,44766,9341,17237,6875,45518,18688,44873,30135,44853,44845,24412,44764,44687,45516,17904,10402)
Unknown column 'np.person' in 'where clause'