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 (37267,5993,5259,24412,13922,6782,6862,44858,45561,44854,44768,44861,17527,18996,10402,45515,44875,17278,4686,17009,44865,28530,17755,17335,18572,18172,44711,44739,17848,24441,44856,13,44835,45286,44531,44640,44689,17981,45229,18237,24438,45177,18900,30963,17601,17492,13988,18279,44671,44766,45346,44884,45042,18652,17092,18042,45517,45072,16935,14622,44765,28313,5388,17839,44762,44669,13425,18286,44870,4765)
Unknown column 'np.person' in 'where clause'