Simple SQL call

Hi,
I have simple table mytable with fields id,name,custom1 (id primary key auto increment) and want to get value as string with sql: select max(id) from mytable; before mygrid.addRow(…) to concatenate max id with some string to be able to preset value for custom1 filed.
I use grid with grid_connector.php.
Thanks

Unfortunately very is no easy way to get such result with connector. In your case usage of custom php solution sounds as a better plan.