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 (44858,17092,14402,24411,44853,18648,17848,13,44865,44836,18172,16935,13922,44870,5259,44671,37267,4686,44867,44873,5388,44766,44745,17527,44768,45051,17492,30986,17237,6875,43800,18427,18794,18572,18353,44869,39676,44894,24441,17755,18652,44875,44775,18042,6862,44669,44640,17839,19057,44868,44835,3,45561,17601,18286,17335,32454,44848,18446,44739,44685,44851,44762,28530,44861,45042,17771,44765,18279,44531)
Unknown column 'np.person' in 'where clause'