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 (18353,44767,24412,44894,18688,4686,45229,18572,18652,5388,44640,31354,24438,17278,44739,44687,37057,18042,44762,6875,24441,44873,44854,19057,45042,17771,44768,44863,30986,16935,17092,45567,43800,44851,30135,44531,17492,44861,24411,18900,45561,44685,18430,44865,44765,5993,17839,45051,44669,44836,32454,17351,6862,45177,45515,18894,44858,18981,44878,44671,18279,17835,44711,45421,3,17601,34194,3883,18237,14622)
Unknown column 'np.person' in 'where clause'