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 (44848,44762,18688,14402,44711,18237,17703,13988,18572,44685,44531,17527,43800,8753,24441,44894,18894,5259,18446,44671,45072,18430,18719,17556,45516,18650,6862,34194,6782,44868,44863,17848,24412,44865,17237,19078,18427,44855,17771,45277,44869,44745,16885,44861,44669,9341,6875,44640,44849,45177,18353,44766,44878,13922,17755,10402,18042,17278,30135,44775,45286,44674,44836,44853,17835,44767,17114,44837,17756,5410)
Unknown column 'np.person' in 'where clause'