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 (6609,45177,5410,37267,36472,44671,17756,17771,44745,44878,44851,43800,31354,17556,45517,44848,44835,44884,17351,17335,3,45421,6862,18719,44711,44861,17657,6875,44531,45277,18042,44863,45515,4686,18894,44869,44739,44687,9341,18279,39676,17492,28313,44849,45518,44685,18650,44845,45042,17601,24441,45286,44766,17904,44867,44854,13,44669,17278,24411,5388,5993,18688,18286,17114,17703,44775,44868,45262,44865)
Unknown column 'np.person' in 'where clause'