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 (18688,16885,17703,30986,17601,45515,44739,17839,44671,17556,44851,45516,44858,44878,45286,6875,18427,17657,6862,4686,3883,5388,44836,17771,18900,13988,44873,18446,5410,5259,18353,24438,44884,24411,44766,17492,18430,44762,13922,44685,30135,8753,18572,45177,45561,17835,24412,16935,19057,44868,45072,44674,18719,44875,18794,44853,17756,18286,37267,13425,44765,45518,44855,17527,44835,17755,45421,17114,44870,45229)
Unknown column 'np.person' in 'where clause'