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 (19078,18353,37057,30986,44689,45515,30963,44768,13425,5259,44762,44868,3883,18430,18650,44669,44861,44884,6875,44866,17492,16885,17237,17755,22509,18794,44873,45277,5388,13988,17981,17556,18572,44837,45516,34194,45177,43800,44855,18042,18286,37267,44531,24438,44739,45567,18446,17756,9341,17114,18719,4765,44865,28530,17092,44640,17351,18996,6862,24411,17278,18648,16935,44851,44853,6609,44775,44687,44835,45229)
Unknown column 'np.person' in 'where clause'