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 (4765,3883,17492,18172,45277,18353,44669,6875,44851,18430,28313,19078,44837,45180,24412,17092,18688,44869,24438,45177,6609,24411,14622,44767,13922,44845,18237,44745,5993,8753,16885,6782,45051,45043,17527,17009,17601,44849,44855,19057,45515,44671,18185,44863,22509,17839,17771,5259,44861,18894,44687,28530,24441,44640,37267,17335,14402,13425,13988,44711,45518,44836,44835,44765,18981,6862,45286,44873,44689,18286)
Unknown column 'np.person' in 'where clause'