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 (19057,18286,44868,45229,45262,10402,18900,44869,5259,44837,6862,45518,22509,18996,18237,28313,45515,45042,28530,44765,45567,9341,44884,44873,44640,17904,31354,43800,6875,17771,17981,44855,17657,17527,18719,19078,44711,6782,44856,44739,44845,45516,16885,24411,44768,14402,17092,18981,44674,18172,44861,17335,45051,16935,34194,32454,44767,44875,44689,5388,24441,18572,45561,13425,44685,17839,14622,3883,18301,45286)
Unknown column 'np.person' in 'where clause'