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 (44865,45518,44861,44640,18172,44764,13425,44873,17492,44856,44767,44671,18430,13922,45177,17839,17657,44867,44854,6875,44762,24438,17114,14622,34194,17009,37267,44775,14402,44531,5388,18794,44845,44689,28313,32454,44837,3,17278,17848,18185,31354,17771,30963,45262,22509,4686,45517,45286,45042,18650,45515,44870,13,37057,44875,36472,19057,45346,3883,17904,30986,18900,13988,19078,45229,44894,44869,17351,43800)
Unknown column 'np.person' in 'where clause'