SELECT
DATE_FORMAT( start_date, '%Y' ) as lastYear
FROM
tvl_reports
WHERE
public = '2'
ORDER BY
start_date DESC
LIMIT 1
MYSQL: Table 'neuloonland.tvl_reports' doesn't exist
SELECT
*,
DATE_FORMAT( start_date, '%d.%m.%y' ) as date_d,
DATE_FORMAT( start_date, '%d.%m.%y' ) as date_e
FROM
tvl_reports
WHERE
public = '2'
AND
( YEAR(start_date) = )
ORDER BY
start_date DESC
MYSQL: 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 ')
ORDER BY
start_date DESC' at line 10