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 (18430,4765,24412,28530,17009,44835,45516,18185,17771,44868,17981,6782,32454,44873,5388,45180,45177,17278,16885,24438,5993,17335,45229,43800,13425,44867,18688,13922,18652,18237,45421,44870,44689,44865,16935,13,45043,18894,44845,3883,18650,18996,44671,13988,18427,17839,44669,44685,44875,34194,44858,44711,14402,22509,17351,17114,44739,17092,44687,24441,45515,19057,44848,18301,44837,17556,6862,44766,18353,18172)
Unknown column 'np.person' in 'where clause'