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 (36472,44764,18353,45421,3,45518,44640,45072,44689,5388,18572,43800,17839,44685,18688,44861,13922,17771,44845,10402,44762,44531,17278,44866,5410,6862,5259,44878,44674,45567,18900,44767,45177,44687,44849,44739,17009,17601,17981,37057,44745,5993,45262,44853,44873,44894,18652,44855,19057,17904,28313,18719,44868,16885,44867,45517,17492,17237,17703,18648,32454,17755,44884,44848,24412,44863,17527,4765,18286,17335)
Unknown column 'np.person' in 'where clause'