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 (13922,5388,44775,18172,22509,24411,44861,45042,44854,44739,17527,44848,44671,17278,44863,3883,44669,44674,17092,3,44835,44855,44687,45043,44689,4686,4765,6875,44851,18688,10402,14402,31354,17981,13988,44640,44711,45561,18794,44856,17755,44762,45567,45051,44765,44868,44766,6862,45518,13425,13,44865,18572,44849,5993,17657,18446,45517,44873,14622,18237,18042,37057,44764,39676,37267,17771,24412,44884,18279)
Unknown column 'np.person' in 'where clause'