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 (4765,17981,44711,6609,44775,14622,8753,17351,17527,17835,44861,45262,44669,44739,44854,18427,17839,44765,5993,17335,28530,13922,18042,18172,37267,44835,44745,3883,13988,44837,39676,14402,5259,6875,45277,30963,17278,44768,44848,44856,44875,44674,45518,45051,44671,18900,17904,37057,44865,3,44868,22509,17657,44836,44531,45177,44884,18572,13425,44858,18353,44867,18301,18688,44869,44766,44685,45561,13,44849)
Unknown column 'np.person' in 'where clause'