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 (17771,44865,19057,44739,18794,18719,16935,44875,44884,44765,44856,17009,44768,17601,45180,18172,13922,44745,3,45277,17981,18286,44762,17703,44869,17848,45346,16885,44687,30963,37267,34194,44835,28313,45072,9341,45515,17492,44868,17237,44855,45518,44878,44640,17657,17835,4686,17278,44689,18446,24438,45567,18688,17527,44837,44863,44836,17114,39676,44671,44870,44685,45262,18353,45042,19078,5259,5388,8753,45517)
Unknown column 'np.person' in 'where clause'