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 (17335,19057,44671,18648,44837,44863,44689,45286,9341,8753,18894,17771,39676,17657,45180,6782,44861,18237,32454,17848,30135,44836,45518,18572,18279,24438,18446,44884,43800,17351,4686,18042,18794,44640,44766,17278,44856,5410,17092,17601,44835,18301,17009,44869,30986,37267,17839,17527,45277,17492,44764,45421,44849,44855,17703,6609,6875,13425,17904,13922,44765,18353,44762,24412,28313,45516,45561,13988,24441,22509)
Unknown column 'np.person' in 'where clause'