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 (18650,18279,4765,45346,6862,17848,17527,44858,45277,17839,32454,3,44671,19078,17492,17351,24411,44762,13425,17755,44837,17114,44865,44861,18719,18286,14622,44765,45180,17237,3883,17092,18652,37057,44848,18353,44739,44856,45286,45561,17771,44745,44669,17556,16885,18894,45043,18648,44851,17657,43800,6875,13922,44869,44873,44685,18185,44866,44853,18042,22509,10402,13988,17009,44870,18427,45262,44687,44640,44835)
Unknown column 'np.person' in 'where clause'