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 (22509,44870,18688,44855,45517,14622,18427,17703,45072,45561,44745,37057,37267,18572,17009,3883,44869,6609,44674,45516,44861,18353,17601,44849,4686,44848,16885,6782,13988,18900,44764,44671,5993,5388,10402,28530,18042,18981,31354,44531,44853,18430,45277,44739,24411,9341,45180,44858,44884,44767,30986,44640,44687,44766,32454,18794,17351,18650,36472,18237,44845,44863,19057,45286,45177,6875,18279,44873,44836,44669)
Unknown column 'np.person' in 'where clause'