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 (45567,9341,18427,44531,14622,18353,45517,13,17492,17092,44836,4686,30135,44845,3883,17835,17114,17009,17657,44687,18185,18279,44745,44849,36472,18650,18042,17527,28530,18301,45072,17278,18652,18688,24412,19057,6875,44875,44867,13425,45516,6609,24441,6782,17703,44853,44762,44764,10402,44863,44873,30963,44640,16885,17839,13988,22509,44689,18237,44671,17981,44768,39676,17771,45286,3,32454,8753,44766,44685)
Unknown column 'np.person' in 'where clause'