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 (44837,44854,4765,44687,17492,45177,16885,17755,5259,44674,6862,18648,44867,45561,17771,17601,44640,3,45517,45286,30135,44671,44669,32454,24438,18650,44765,44853,17904,44856,44865,36472,14622,44775,45043,24412,17657,44766,44849,45072,44685,43800,31354,24441,45515,8753,44863,18237,44836,17556,18719,4686,18353,44689,3883,6609,45346,18572,6875,17848,17335,13,37057,17278,18279,24411,17835,28313,44894,44845)
Unknown column 'np.person' in 'where clause'