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 (45517,44745,28313,14402,17009,44849,44894,44869,13922,45561,18353,18650,45286,30135,45277,44854,44685,44671,18719,8753,34194,18301,17835,4765,18688,44837,44851,44766,17839,44848,17492,17848,14622,3883,18652,44873,10402,17351,16935,45177,44870,18286,44856,44853,44836,17556,45515,44863,24412,44875,44687,44531,17114,45262,5388,28530,37057,44845,17237,18446,44739,18996,17771,45516,45229,44867,44711,32454,44868,18172)
Unknown column 'np.person' in 'where clause'