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 (30963,18648,18301,37057,44884,43800,6875,28530,18042,44687,44766,44845,18430,18353,44854,44739,18894,17114,16935,45042,44861,34194,17351,17703,44669,18286,17981,17657,17492,24411,30135,17527,10402,24412,6782,18719,44869,44765,45517,24438,9341,44894,45516,14622,3883,3,44851,18237,44858,39676,45180,44685,44849,22509,44640,44848,44865,4765,17278,45567,44878,44775,18279,18688,17848,18427,36472,44674,18794,44837)
Unknown column 'np.person' in 'where clause'