mysql> select *,CONVERT(STR_TO_DATE(valueparam,"%d.%m.%Y"),date) as dt from config_common where nameparam like 'dtc-3-%-1' and valueparam<>"" and CONVERT(STR_TO_DATE(valueparam,"%d.%m.%Y"),date) between "2016-12-01" and "2016-12-31" limit 10;
+--------+--------------+------------+------------+
| id | nameparam | valueparam | dt |
+--------+--------------+------------+------------+
| 421968 | dtc-3-4059-1 | 13.12.2016 | 2016-12-13 |
| 421943 | dtc-3-4452-1 | 13.12.2016 | 2016-12-13 |
| 421917 | dtc-3-901-1 | 13.12.2016 | 2016-12-13 |
| 421896 | dtc-3-3224-1 | 13.12.2016 | 2016-12-13 |
| 421870 | dtc-3-1624-1 | 13.12.2016 | 2016-12-13 |
| 421847 | dtc-3-3173-1 | 13.12.2016 | 2016-12-13 |
| 421824 | dtc-3-5655-1 | 13.12.2016 | 2016-12-13 |
| 421801 | dtc-3-845-1 | 13.12.2016 | 2016-12-13 |
| 421778 | dtc-3-3994-1 | 13.12.2016 | 2016-12-13 |
| 421743 | dtc-3-871-1 | 13.12.2016 | 2016-12-13 |
+--------+--------------+------------+------------+
10 rows in set (0.03 sec)