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 (18172,5410,45042,17848,30135,17756,18353,18981,13922,44685,4765,44845,45515,16935,45180,44762,28313,44669,10402,44849,6862,44855,44687,14622,44836,44768,18237,45286,45516,18900,17351,18301,17492,44868,13425,44531,18286,6875,18996,30986,17601,37267,45262,17527,44875,44775,44674,17335,44745,13988,18430,44767,44858,45517,17092,4686,5259,45277,13,18572,44861,18688,17839,19078,44863,44856,18794,17657,45346,45229)
Unknown column 'np.person' in 'where clause'