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 (28530,44669,4765,18172,18042,13988,19057,17527,44671,14622,13922,45043,24412,44863,44762,18794,44861,17351,44767,44865,17904,44873,5388,18648,44531,45177,17278,18301,24438,44856,45229,39676,17835,5993,19078,36472,45517,45051,44869,18652,6782,45072,16885,13,45518,44745,14402,44687,17092,44845,44685,18650,18688,18427,28313,34194,16935,44711,45042,6875,6862,5410,18430,18286,17492,44868,44866,17703,44851,44849)
Unknown column 'np.person' in 'where clause'