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,45180,43800,28313,44745,17904,44869,44775,13425,44894,37267,18353,44837,24411,44853,45561,6862,44884,18648,18172,44685,45042,44867,18650,44765,44836,30135,45518,17981,13922,44531,5388,45567,17351,45262,45517,44873,45421,45515,31354,18996,44689,45286,44849,44669,4686,44848,24441,17848,18042,24438,13,18719,17492,18652,16885,32454,44878,18427,17839,44866,17771,4765,44739,44875,6782,17601,17009,17657,6609)
Unknown column 'np.person' in 'where clause'