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 (45346,8753,45180,45567,13922,3883,44739,44640,44873,44868,28313,13,44845,18353,45561,45229,17703,17835,44768,14402,30135,5993,17657,17114,24441,18042,22509,17237,18427,17492,17335,45518,17839,45262,44764,44884,44858,44835,17278,44766,17009,45072,44837,19057,18719,4765,18688,18894,44869,18794,24411,16885,18185,45421,5388,44767,6862,44674,19078,44836,18286,18572,3,44762,18446,18279,16935,45277,18900,24438)
Unknown column 'np.person' in 'where clause'