Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (18430,32454,17237,44835,13,44762,16935,5388,44765,24411,44687,17335,18719,17703,6875,18301,4686,30963,44768,45042,44845,45561,24438,45229,18996,44884,18286,18648,28313,44867,17657,30135,44764,17492,3,44878,18794,45346,19078,14622,44745,17835,6862,17839,6782,45051,31354,13988,13922,44767,18353,44856,44863,45262,17092,24412,18652,5410,44873,18427,18688,44853,45072,17527,17904,14402,45515,44671,18572,18900)
Unknown column 'np.person' in 'where clause'