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 (44766,16885,6782,18430,18996,17756,28313,17657,18042,13988,44775,45518,44870,17527,44867,17981,44869,3883,18688,44640,44858,44894,18446,44745,44848,24438,17556,45516,44845,18237,17835,18185,45262,44687,18572,44855,17839,18794,32454,17492,17755,5410,45072,18301,18353,18900,5259,24411,44875,18648,45180,44762,4686,44764,13425,13922,44711,45567,30963,5388,6875,4765,18981,45042,18894,17703,44878,45286,44836,44849)
Unknown column 'np.person' in 'where clause'