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 (17601,18648,18430,44739,39676,44878,17703,28530,44865,44849,45043,44845,30963,44837,6782,18794,45567,44640,18286,44848,17755,44868,13425,43800,44884,17848,17756,5388,14622,44767,44836,18572,3883,17527,18719,18900,45561,45072,30135,19078,30986,18353,13988,45518,45229,18894,17835,44766,18301,4765,44768,6875,44861,45051,17092,45517,34194,16935,44669,37057,18996,44863,17556,13922,24441,44855,18279,17351,44775,18652)
Unknown column 'np.person' in 'where clause'