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 (44836,17351,32454,44766,44768,44767,18172,44848,44870,17237,6862,44875,44878,18446,18353,44687,18279,17556,44863,3883,18648,45180,13922,18237,44674,45516,44866,45515,18688,19057,28530,18650,45518,30986,45517,17755,18430,44671,18286,44640,44849,16885,45561,13,45346,36472,19078,17278,39676,44858,17527,13988,44873,17009,45421,44739,44745,18042,5388,45177,17114,44894,28313,44531,14402,17601,16935,44765,18427,6609)
Unknown column 'np.person' in 'where clause'