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 (44775,17839,44865,45286,43800,44894,44674,32454,44685,44768,19057,5259,13,44640,37057,24441,18652,45177,44767,44848,44866,13425,44845,45515,44849,18446,44837,17556,45180,18301,44853,18794,44687,45229,17835,17755,3883,45072,24412,17492,17335,44854,18648,18650,45561,45567,16885,17009,17771,18688,14622,17601,44689,17981,4686,30963,13922,18430,6782,18894,18172,6609,45042,34194,3,6862,44858,44671,18719,44765)
Unknown column 'np.person' in 'where clause'