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 (44848,17278,18996,17335,17351,24441,44867,13988,18648,18894,44869,44669,45072,45567,44853,45043,5993,24412,18688,44766,45346,31354,18042,18353,44873,44762,18286,18446,18279,44878,18900,5388,44854,6862,44861,3883,44868,45177,32454,44640,45180,28313,30135,45561,44863,28530,44745,13922,17904,18237,44739,43800,44685,44835,24411,45517,45277,34194,13,5410,16885,44851,17657,18719,10402,30963,44849,17839,17755,44671)
Unknown column 'np.person' in 'where clause'