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 (18185,17335,22509,31354,37267,43800,44868,18237,18430,3883,44858,17492,44849,44674,18996,44775,18446,13425,18572,36472,44745,44835,17092,24412,44767,44865,44762,9341,44837,5410,6875,14402,44689,44884,44894,18301,34194,44531,5388,45042,17771,17839,44875,45072,6782,18353,18900,17981,45277,13922,45262,45051,45518,24438,18652,44640,16935,18427,44671,18688,45516,13988,44687,3,16885,17601,17351,44711,30986,44854)
Unknown column 'np.person' in 'where clause'