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 (17237,13,44767,44531,4765,16935,17492,3883,16885,24441,44674,17601,44855,44858,45421,45515,18688,18894,6609,44835,18446,44640,5259,45177,44689,37057,18719,18172,44762,24412,44685,13922,44856,18279,10402,3,18042,45517,45567,44875,45043,17114,17556,22509,28313,44766,44861,44739,17009,44851,24438,44837,18572,17278,45051,45262,45518,44873,45346,44870,9341,45277,45286,17771,6875,44865,44848,44878,17755,30135)
Unknown column 'np.person' in 'where clause'