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 (17114,18286,45051,44866,44845,18237,44894,44849,18650,5993,18172,34194,43800,44861,44765,18794,44848,30135,45277,17839,6875,17335,44739,18900,19078,44867,17835,44768,44884,18719,17556,3883,5388,18185,45229,30963,24441,18652,45262,24412,44836,3,17351,37057,44687,45518,18688,44869,44674,44851,16885,18353,44865,13425,45286,44689,17492,44853,13922,44671,5259,18648,9341,14622,39676,17848,18279,44875,44531,44685)
Unknown column 'np.person' in 'where clause'