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 (44739,44869,44867,13988,3883,44845,17771,9341,44836,16935,44762,39676,10402,18650,18172,45518,17335,17492,17527,24411,22509,44884,18648,37267,17835,45177,44669,18572,24412,30986,45051,44870,34194,4686,18446,44671,28313,30963,17601,5993,17657,45346,17114,44689,19078,45180,44849,44640,45421,44875,17092,44685,18794,18900,17556,36472,44873,45561,44848,17009,45229,18996,6782,45277,44863,45072,6609,45515,24441,18042)
Unknown column 'np.person' in 'where clause'