Erro: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND dtl_stt = 1 ORDER BY dtl_ndx' at line 10
------------------------------------
SELECT dtl_id, dtl_tip, dtl_txt, dtl_stt, dtl_pmk FROM lms_ecm_prd_dtl WHERE dtl_prd_id = AND dtl_stt = 1 ORDER BY dtl_ndx;