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 (44762,45072,45421,17009,44845,17756,39676,24438,17835,18981,44865,44861,18652,6875,32454,44768,37057,44855,44531,44685,10402,18353,45517,13988,44765,3,44775,18172,19057,45042,17527,13,45262,17556,18572,18688,14402,17839,18185,45043,28313,18996,44689,6782,45286,13922,13425,24411,17904,44739,17237,18427,18430,44853,18900,4765,17657,36472,17601,44745,17335,18650,14622,44854,34194,44849,44687,45518,44640,9341)
Unknown column 'np.person' in 'where clause'