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 (4686,5993,45517,44851,43800,18688,18794,18894,45072,37057,18353,45177,44765,44845,44836,44875,45421,17092,44685,18172,3,44640,16935,44865,18652,18648,45262,13,37267,17492,32454,44863,18430,44768,44671,44764,3883,18427,45277,45043,31354,45567,44866,14622,44869,36472,44861,18185,17009,6875,5388,18446,18650,17771,44669,44711,6862,24412,17839,19078,39676,45286,13988,19057,44745,10402,44775,18900,18572,18279)
Unknown column 'np.person' in 'where clause'